News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.