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
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
Show replies