Rationalizing ASI (was: simple shorter function syntax)

Brendan Eich brendan at mozilla.com
Sun Jul 25 12:00:20 PDT 2010


On Jul 25, 2010, at 11:56 AM, David Herman wrote:

>> In order to reliably remove this hazard, we would need to ban statements from starting with '('. Perhaps we should consider doing so.
> 
> 
> That's a REPL-killer: as is, you have to do unnatural paren-wrapping for object-literal expressions at a REPL:
> 
>> ({ foo: 42 })
>    ({ foo: 42 })
> 
> Now you wouldn't even be allowed to do that.

No free lunch! ;-)

Hey, we are merely considering, not jumping to a conclusion.

Mark's restricted production for CallExpression attacks the hazard even more directly, but apart from our aversion to restricted productions, what might it break?

/be


More information about the es-discuss mailing list