Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
pcwalton
10y ago
0 comments
Save
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
1 comments · 1 top-level
top
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