Sets the default value to `pp.fieldNotation.generalized` to `true`. Updates tests, and fixes some minor flaws in the implementation of the generalized field notation pretty printer. Now generalized field notation won't be used for any function that has a `motive` argument. This is intended to prevent recursors from pretty printing using it as (1) recursors are more like control flow structures than actual functions and (2) generalized field notation tends to cause elaboration problems for recursors. Note: be sure functions that have an `@[app_unexpander]` use `@[pp_nodot]` if applicable. For example, `List.toArray` needs `@[pp_nodot]` to ensure the unexpander prints it using `#[...]` notation.
15 lines
393 B
Text
15 lines
393 B
Text
fun a => a : α → α
|
||
fun {α} a => a : {α : Sort u_1} → α → α
|
||
fun x x => x : Nat → Nat → Nat
|
||
def f : Nat → Nat → Nat :=
|
||
fun x x =>
|
||
match x with
|
||
| 0 => x + 1
|
||
| n.succ => x + 2
|
||
fun {α_1} a => a : {α_1 : Sort u_1} → α_1 → α_1
|
||
fun x x_1 => x_1 : Nat → Nat → Nat
|
||
def f : Nat → Nat → Nat :=
|
||
fun x x_1 =>
|
||
match x_1 with
|
||
| 0 => x_1 + 1
|
||
| n.succ => x_1 + 2
|