Mark S. Miller wrote: > On Sat, May 9, 2009 at 2:32 PM, David-Sarah Hopwood > <[email protected]> wrote: >> [...] but the AST should preserve the associativity defined in the >> language spec. > > But which language spec? Again, specs only traffic in observable > differences. Since ES5 does not define any std parse or AST API, there > is no observable difference in ES5 whether this is specified as > left-or-right associative. Assuming ES6 does define such APIs, the > difference becomes observable. I see no reason why ES6 could not > compatibly specify a right associative grammar for || and &&.
I have no objection to that as long as the AST API and the ES6 grammar are consistent with each other. -- David-Sarah Hopwood ⚥ _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

