-
Notifications
You must be signed in to change notification settings - Fork 400
Declare loop variables once and only once #1170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ial local variable
|
Does this have any effect on whether the variables are reset for nested loops? Or is the presence or absence of |
|
No effect since I find each (To avoid loop variable reuse, some or all of the loops could be rewritten using |
Declare loop variables at first use. Do not redeclare on subsequent uses.