-
Notifications
You must be signed in to change notification settings - Fork 29
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
LoopOverLength check #338
LoopOverLength check #338
Conversation
Does |
Shouldn't it check that the index is used for indexing? There is nothing wrong with having a loop from 1 to the length of something. |
There's a bikeshedding discussion to be Thanks so much for tackling this @pfitzseb. Hopefully this is one of those little changes that nudge the whole ecosystem towards more care for correctness. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but don't know this code that well.
This looks great! Could this be extended to multidimensional arrays and encouraging |
I got a crash with:
|
Should be fixed now. |
Fixes #337.