Another paren-free gotcha

Brendan Eich brendan at mozilla.com
Wed Sep 28 18:01:22 PDT 2011


On Sep 28, 2011, at 5:53 PM, Brendan Eich wrote:

> Not sure about. Waldemar's examples can bite plain old expression-statement refactoring too. Is this really a fatal flaw of paren-free, or more a problem with C-family expression-statement syntax?

Combined with regexps, of course, in the last case (leaving ASI out).


> If ASI is the culprit to focus on, I can work harder on ASI in relation to paren-free. I do not want to hack on paren-free by itself. It's quite simple and not in need of "patching".

My approach would be to make newlines *more* significant, not less.

/be


More information about the es-discuss mailing list