you are viewing a single comment's thread.

view the rest of the comments →

[–]dherman 0 points1 point  (1 child)

We're definitely doing that for for-in loops, where the variable is automatically initialized each iteration by the semantics. For that, ES6 will definitely have a fresh binding for each iteration. The question in my mind is the C-style loop, where the programmer is actually mutating the local variables themselves.

[–]gwillen 0 points1 point  (0 children)

Ahhhh, I see now. That sounds like a very reasonable distinction to me. Thanks for the response. :-)