Allen's lambda syntax proposal

André Bargull andre.bargull at udo.edu
Thu Dec 4 02:21:28 PST 2008


>
> My example:
>
> x = x * x
> ^(a,b,c,d,e,f,g)
> {
>   x
> }
>
> is not a syntax error, but it also (unfortunately) doesn't contain a
> lambda expression.  Or am I missing something?
>   

Or a bit more obvious than the use of the comma-operator:
As soon as named lambdas are introduced (the weak spot on the \ 
proposal), you'll get big problems with the ^ proposal, too.
Consider the following snippet which is valid Javascript code, but 
certainly not a lambda expression.

var f = function (){return 8;}
var x = 5
^f(x) { x=x*x }




More information about the Es-discuss mailing list