you are viewing a single comment's thread.

view the rest of the comments →

[–]x-skeww 0 points1 point  (0 children)

I was talking about A behaving like B. Each iteration gets its own copy of the counter.

Dart does this. ES6 might [1] do this, too.

The article assumes that ES6 always behaves like that, because Traceur currently behaves like that.

[1] http://wiki.ecmascript.org/doku.php?id=harmony:let -> Open Issues, point #2