3 ms·
> main: () -> int = { Y U NO fn??!? So close, and yet so obviously wrong.
by zozbot234 4y ago
> main: () -> int = {
Y U NO fn??!? So close, and yet so obviously wrong.
- Koshkin 4y agofn is no fun
- duped 4y agoWhy add a keyword when you don't need it?
- bogdanoff_2 4y agoFor easier grepping
- deleted 4y ago[deleted]
- teo_zero 4y agoOne answer would be: So that when you hit the ( you know it's a list of parameters and not an expression, even before you spot the -> I still haven't read enough about syntax 2 to understand if it allows any other use of ( after a : but if yes, a keyword like fn or fun would make the parser much more regular.