Closed danielo515 closed 6 years ago
Sorry, I don't think removing the parameter parentheses can work in LiveScript, because a -> b
is already an expression that means a(function () { return b; })
. Changing that would break a lot of code.
What if you do only for function declarations ?
f = a -> b
has the same problem; it already means f = a(function () { return b; })
. For named function declarations, the parentheses are already optional.
There was a time when lambda on livescript were much more succinct than on javascript. That is no longer the case :
In the case of curried functions javascript is even shorter
I was wondering how hard would be to make parentheses optional on function declarations, at the end you must add an equals sign before and am arow after