Rationalizing ASI (was: simple shorter function syntax)
brendan at mozilla.com
Sun Jul 25 15:33:18 PDT 2010
On Jul 25, 2010, at 2:17 PM, Brendan Eich wrote:
> Also, not another restricted production! But hats off to Mark for proposing it, since it zeroes in on the hard case.
> A good es-discuss thread (it's not like we have too many going at once) can clarify what may seem murky or overcomplicated issues. Just the emotion around ASI makes me want to reach for greater clarify and (if possible) improvements down the line. But yeah, it's low priority and the risk for reward looks high.
Throwing out another idea: a stricter Harmony strict mode could make a parameter list starting with '(' on separate line from callee expression be an error. Among other ASI reforms, if any.
With Harmony built on ES5 strict, anyone migrating code containing "use strict" climbs the strictness ladder toward fewer actual hazards. If this bites back, remove the "use strict" and stay with ES5-level strict-by-default in Harmony.
Thoughts? I'm not in love with any of this, just trying alternatives on for size on a Sunday afternoon.
More information about the es-discuss