optional "function" keyword

Brendan Eich brendan at mozilla.org
Wed Mar 7 08:11:44 PST 2012

David Herman wrote:
> To be clear: what I'm suggesting is that expression closures would 
> *not* be syntactic sugar for statement bodies, but rather would be 
> TCP-respecting. Most of the time this wouldn't even be noticeable, 
> until you use do-expressions.
I'm not sure do expression syntax is freaky-deaky enough. Maybe, maybe not.

Also, if we hope to get shorter function syntax into ES6 this is a 
bridge too far. Later, sure. Just a consideration. I could see reaching 
consensus on shorter function syntax sooner than on a new f-d TCP form.


More information about the es-discuss mailing list