Allen's lambda syntax proposal

Neil Mix nmix at
Tue Dec 2 19:11:04 PST 2008

On Dec 2, 2008, at 8:57 PM, Brendan Eich wrote:

> C# uses (a, b, c) => ... but in JS the comma operator makes that  
> nasty to parse top-down. I think the only candidates have to be of  
> the form
> ^(a, b, c) {...}
> (^ could be another character, but it seems to beat \ as others have  
> noted), or else the Smalltalky
> { |a, b, c| ... }
> At this point we need a bake-off, or a convincing argument against  
> the unusual vertical bar usage.

How's this for a strawman: the choice is to follow either Objective-C  
or Smalltalk.  Given that Objective-C and JS share syntactical roots  
in C, it makes more sense to follow the Objective-C precedent.

More information about the Es-discuss mailing list