Allen's lambda syntax proposal

Sam Ruby rubys at intertwingly.net
Wed Dec 3 16:06:21 PST 2008


2008/11/30 Brendan Eich <brendan at mozilla.com>:
> At the TC39 meeting two weeks ago in Kona, we had a brief bikeshedding
> discussion about lambda syntax and why it matters.

Has anybody given any thought to the C# (ECMA TC49) syntax?

(input parameters) => {statement;}

where the parens are optional if there is only one parameter, and the
braces are optional if the statement is a simple expression.  Example:

(a,b) => a+b

More specifics here:

http://msdn.microsoft.com/en-us/library/bb397687.aspx

- Sam Ruby


More information about the Es-discuss mailing list