Hacker News new | past | comments | ask | show | jobs | submit login

    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.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: