3 ms·
> variable declarations inside loops What's wrong with variable declarations in loops?
by Sean1708 9y ago
> variable declarations inside loops
What's wrong with variable declarations in loops?
- bluejekyll 9y agoNothing. There is not a performance hit in most languages, and it clearly articulates that the variable is only in scope for one iteration of the loop.