domenic at domenicdenicola.com (2013-12-10T01:19:58.747Z)
> But IIRC (and from reading http://people.mozilla.org/~jorendorff/es6-draft.html, looking for LetOrConst uses), ES6 supports let
> in all contexts, reserved word or not.
Yes, I see that now. Has anyone done compatibility-hazard analysis for
this breaking change?
;
let["a"].foo() // Fine in ES5 non-strict, fails in ES6?
> Did we really do any good trying to reserve yield *or* let in ES5? I don't
> see it, now.
It looks like the combination of context-sensitive lexing and the placement
of the "use strict" prologue interacts...poorly. (Cue Indiana Jones and
the Last Crusade.)
I see now that Allen has moved strict reserved words out of the lexical
grammar. Cool!
> > > But IIRC (and from reading http://people.mozilla.org/~ > jorendorff/es6-draft.html, looking for LetOrConst uses), ES6 supports let > in all contexts, reserved word or not. > Yes, I see that now. Has anyone done compatibility-hazard analysis for this breaking change? ; let["a"].foo() // Fine in ES5 non-strict, fails in ES6? > Did we really do any good trying to reserve yield *or* let in ES5? I don't > see it, now. > > It looks like the combination of context-sensitive lexing and the placement of the "use strict" prologue interacts...poorly. (Cue Indiana Jones and the Last Crusade.) I see now that Allen has moved strict reserved words out of the lexical grammar. Cool! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131126/7374bbbf/attachment.html>