I don't think it does! Any loop construct introducing a new variable would've had the same problem due to function scoping, right? (Or if that is it, what would you prefer?)
-
-
For one thing, for-each loop structures encourages the variable being looped over to be explicitly named (as "block" or "enemy" or whatever), eliminating the low-level i(ndex) variable that every single for-i loop uses,
-
moreover, I'm not familiar with AS3 but I suspect support (syntactically and performance-wise) for something resembling the ES5 .forEach() function family, which uses functions/"lambdas" for iteration, should've been provided instead.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.