Re:How necessary are var, let, and const?
by rayiner on Monday June 01, 2015 @04:39PM
(#9641983)
What gets me is that there are languages in 2015 that don't get lexical scoping right. It has been a solved problem for 40 years now.
[ Parent
| on HN ]
Saying that it's 2015 is a bit misleading. In JS's case, it's mostly a question of backwards compatibility and interactions with those backwards-compatible features.
The designers of let are largely a bunch of Schemers; they knew what they were doing.