(x) => {foo: bar}

Brendan Eich brendan at mozilla.org
Tue Jan 6 10:42:19 PST 2015

Sorry, sent too soon.

Dean Landolt wrote:
> If it's too late to properly vet a change which narrowly excludes from 
> arrow bodies any `LabeledStatement` that isn't a 
> `WellLabeledStatement`, would it be feasible to simply exclude any 
> `LabeledStatement` for now? I doubt there's much code in the wild that 
> would be affected by this change -- certainly not yet. That'd buy 
> plenty of time to add back proper support for `WellLabeledStatement` 
> arrow bodies in es7.

The ES6 grammar has not been refactored per my old strawman. It has no 
WellLabeledStatement non-terminal.

For ES6, we would need another production parameter to FunctionBody, 
FunctionStatementList, and StatementList (at least) by which to restrict 
a ConciseBody : { FunctionBody } such that the FunctionBody : 
FunctionStatementList (via FunctionStatementList : StatementList[opt], 
StatementList StatementListItem, etc.) doesn't start with a 

Cc'ing Allen and Waldemar for their thoughts.


More information about the es-discuss mailing list