The language used to work this way, a fresh environment would be created for every loop iteration. We changed it for better performance and JavaScript interop. Not sure if it was the best decision ever but it comes up rarely enough and it's hard to get the same performance improvement with an optimizer. :-)
- Closures inside loops without capturing loop variable? trisub
- Closures inside loops without capturing loop variable... xigoi
- Closures inside loops without capturing loop vari... xigoi
- Closures inside loops without capturing loop ... trisub
- Closures inside loops without capturing l... alexeypetrushin
- Closures inside loops without captur... Randy
- Closures inside loops without ca... trisub
- Closures inside loops withou... Araq
- Closures inside loops withou... DIzer
- Closures inside loops withou... DIzer
- Closures inside loops withou... Araq
- Closures inside loops withou... DIzer
- Closures inside loops withou... alexeypetrushin
- Closures inside loops withou... planetis
- Closures inside loops withou... DIzer
- Closures inside loops withou... DIzer
- Closures inside loops withou... Araq