Rationalizing ASI (was: simple shorter function syntax)

David Herman dherman at mozilla.com
Sun Jul 25 11:56:21 PDT 2010


> 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.

Dave



More information about the es-discuss mailing list