Zulip Chat Archive

Stream: general

Topic: Indentation in meta code


Yury G. Kudryashov (Dec 31 2023 at 17:08):

I see both

      match names.find? m with
      | some others => return names.insert m (others.push n)
      | none => return names.insert m #[n]

and

  match name with
    | .anonymous => s
    | .num _ _ => panic s!"panic in `getModule`: did not expect numerical name: {name}."
    | .str pre s => getModule pre s

in Mathlib/Lean/Name. Which indentation style is preferred?

Kyle Miller (Dec 31 2023 at 17:10):

I like using the first one.


Last updated: May 02 2025 at 03:31 UTC