The closing parenthesis after arg2 really ought to mean end of formal parameter list. Anything else is too magical.
Why should foo(arg1)(arg2) and foo(arg1){||arg2} differ? Your use-case is satisfied by returning a function (memoized, singleton even), but the symmetry between (arg1, ... argN) and space-separated BlockArguments should not be broken.
This was an explicit goal, in order to support use-cases including setTimeout and promises APIs.
Yes, see https://mail.mozilla.org/pipermail/es-discuss/2011-May/014675.html /be
|
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss



