News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by IshKebab on Sunday May 16, 2021 @03:55AM (#27171996)
That's a good thing, and I'm not sure what you mean about it being a dynamic check.
Re:Modern Javascript: Everything you missed over the last 10... by titzer on Sunday May 16, 2021 @01:38PM (#27175428)
It's a dynamic error if you access a let-bound variable before it is actually initialized. In most other languages that have lexically-scoped declarations, it simply would not be visible. So I think JS's choice is actually a regression.