Comment by anonymoushn
1 day 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 day 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.
Fair, but that's a property of for loops. Variable in closures are still always captured by reference.