Allen's lambda syntax proposal
André Bargull
andre.bargull at udo.edu
Thu Dec 4 06:51:17 PST 2008
On 12/4/2008 3:15 PM, P T Withington wrote:
> Would it work to move the parameter list inside the block (as in the
> Smalltalk way, but as a regular parameter list, not using ||'s)?
>
> {(a, b) a + b}
>
> AFAICT, `{(` is a syntax error for an expression in es3.
>
And if you just execute the lambda expression? For example the following
code is legal Javascript:
var a = b = 0;
{(a,b)
a+b}(10, 5)
More information about the Es-discuss
mailing list