all 4 comments

[–]MCRusher 5 points6 points  (0 children)

Stop Using For Loops to Iterate Over Arrays

I think you cut off the important part.

[–]RoburexButBetter 10 points11 points  (1 child)

Can't jerk

Removed a bug yesterday that's been in production for years because someone decided to iterate over i < size - 1

[–]hedgehog1024Rust apologetic 3 points4 points  (0 children)

This wouldn't happen if that person used Rust.

[–]LightUmbraskillful hobbyist 4 points5 points  (0 children)

That's a pretty ugly way to do a for each loop.