Conversation

I wouldn't say I like it but I would say that pretty much every other syntax for lambda that I've seen looks worse 😅 except for the unicode λ in Granule, of course 😉
1
7
It's good to have a prefix that says "this is a lambda" because it makes the lambda syntax clear and unambiguous. For example, what is `for [Left "hello world", Right 2, Right 288382] x -> x * x`? Is it a function with three arguments? is `for` applied with a list and a lambda?
5
8
parens being mandatory doesn't quite help because normal expressions can also be written with parens, e.g. `f (g x x) 2` and `f (g x -> x) 2`
1
1
As a reader I'd have to read more carefully and find that `->` to know if what I read is a lambda or an application.
1
2