On Sat, May 9, 2009 at 2:32 PM, David-Sarah Hopwood
<
david-sarah@...> 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 &&.
--
Cheers,
--MarkM
_______________________________________________
es-discuss mailing list
es-discuss@...
https://mail.mozilla.org/listinfo/es-discuss