Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
pcwalton
10y ago
0 comments
Share
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.
0 comments
default
newest
oldest
mercer
10y 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.
j
/
k
navigate · click thread line to collapse