Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
anonymoushn
· 1y ago · 0 comments
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.
Comments
[–]
sapiogram
1y ago
Fair, but that's a property of for loops. Variable in closures are still always captured by reference.