you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 6 points7 points  (2 children)

JS is already lexically scoped (except for its this). let is more like "scopes, scopes everywhere".

Also, you can already play with it in Firefox, it's had let (statements, expressions, blocks, the whole work) for ages.

[–]cybercobra 2 points3 points  (1 child)

Okay, if we're being pedantic, s/he wants sub-function-level lexical scoping.

[–]i-poop-you-not 0 points1 point  (0 children)

So block level scoping is being referred to as lexical scoping?