Y
Hacker News
new
|
ask
|
show
|
jobs
by
pcwalton
3805 days ago
let f = function() { ... g(); ... } let g = function() { ... f(); ... } f();
Works despite the temporal dead zone and depends on hoisting. This exact example is why hoisting was kept for let.
1 comments
mercer
3805 days ago
Interesting. This kind of stuff makes me want to dive into the details of these kinds of choices, as I regularly wonder why languages designed are a certain way.
link