Closed leissa closed 1 year ago
Use : in .lam/.lm/.fun/.fn to separate (optional) return type instead of ->:
:
.lam
.lm
.fun
.fn
->
.lam f(x y: .Nat): .Nat = x;
This is like in Lean or SML and resolves an ambiguity:
.lam f x: .Nat -> .Nat = x; // does it mean: .lam f(x: .Nat) -> .Nat = x; // or: .lam f(x: .Nat -> .Nat) = x;
And looks like this now:
.lam f x: .Nat : .Nat = x;
You still want to use parentheses in this case though...
Use
:
in.lam
/.lm
/.fun
/.fn
to separate (optional) return type instead of->
:This is like in Lean or SML and resolves an ambiguity:
And looks like this now:
You still want to use parentheses in this case though...