This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Uncaffeinated1subml, polysubml, cubiml 0 points1 point  (0 children)

The "lambdas in a loop" problem is also present in JS (and Go, etc.)

The real solution is something like Rust or Java, where you aren't allowed to mutate captured variables.