On Tue, Sep 11, 2012 at 4:53 AM, Domenic Denicola <
[email protected]> wrote:

> ...
>


> And, if one replaced all `var`s in the above example with `let`s, one
> would get the desired error, right? To me the most important use cases to
> consider are those in an "idiomatic ES6" let-is-the-new-var world.
>

This is good opportunity to dispel the mythological "let is the the new
var" mantra. In the 1JS World (which trumps the "idiomatic ES6" world),
"var" is still very much in the game, as is function scope. "let is the new
let" correctly describes "let" presence the 1JS world, where "let" exists
to add a new block scope contours.

Rick
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to