Even simpler lambdas

Brendan Eich brendan at mozilla.org
Tue Apr 17 15:24:41 PDT 2012


Peter van der Zee wrote:
> On the subject of readability; I believe that a worded keyword;
> map(return $1+$2) gives a much stronger emphasis to "HEY, I'M DOING
> FUNCTION STUFF OVER HERE" than map((a,b)=>a+b) would.
$1 and $2?

We may have to disagree on this one. I am telling you TC39 is not going 
to go for it.

> I'm not against the current proposal, I just still fear that it's very
> parenthesized.

I do not know what you mean. Single-argument => functions have no extra 
parentheses.

/be


More information about the es-discuss mailing list