let and strict mode
wycats at gmail.com
Sun Nov 18 16:35:57 PST 2012
-- Yehuda Katz
On Nov 18, 2012 4:29 PM, "Brendan Eich" <brendan at mozilla.com> wrote:
> Yehuda Katz wrote:
>> Question: does requiring strict mode for changes that break
compatibility with ES5 really address the 1JS concerns?
> Yes. 1JS is based on ES5 and so includes strict mode.
I was really asking the below question. I didn't remember that let was
reserved and therefore poses no new compatibility issues.
>> We're making usages of the identifier let that were valid in ES5 strict
invalid in ES6 strict. Doesn't that violate 1JS?
> No, you forget that ES5 strict reserves 'let' (and 'yield').
Indeed. Thanks for reminding me.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss