Rationalizing ASI (was: simple shorter function syntax)

David Herman dherman at mozilla.com
Sun Jul 25 14:02:25 PDT 2010

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

I don't see offhand what it might break. This question seems easy to investigate empirically-- crawl the web looking for "violations" of the restriction.

Personally, I'm not enthusiastic about this line of pursuit. It smells of excessive fool-proofing. Ad-hoc restrictions seem both unlikely to provide clear guarantees and likely to have unintended consequences. Irregular syntax is bumpy terrain; obfuscation we will always have with us. In the absence of strong evidence of a need, I'd prefer to relegate such syntactic restrictions to third-party lint tools and let them experiment with them. Just my $.02.


More information about the es-discuss mailing list