Hacker News new | ask | show | jobs
by anonymoushn 435 days ago
The behavior of "let" with for loops where the variable is declared more times than it is initialized, despite the source code having one declaration that is also the only initialization, is not very explicit.
1 comments

Fair, but that's a property of for loops. Variable in closures are still always captured by reference.