Allen's lambda syntax proposal

Peter Michaux petermichaux at gmail.com
Wed Dec 3 10:11:47 PST 2008


2008/12/3 Michael <Michael at lanex.com>:
> If I understand the proposals correctly, then of the following e4x:

Why do you mention e4x? I'm not familiar with it but thought it only
adds XML literals to the language.

Peter


> var doc = {{|a,b,c|...}(d,e,f)}
>
> var doc = {^(a,b,c){...}(d,e,f)}
>
>
>
> var doc = {{||...}()}
>
> var doc = {^(){...}()}
>
>
>
> I honestly don't see the clarity of one over the other especially if someone
> writes larger, asinine e4x.
>
> At least with the vertical bars it has similarities/inspiration from other
> languages as mentioned. This may be important for those migrating
>
> from one of those languages. When I first saw ^(){...}, the vision that came
> to my head was the pointer operator in Visual C++


More information about the Es-discuss mailing list