Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Changing a loop counter in a loop is always a bad idea? You must implement only very simple algorithms.


There are more than one loop expression. Idiomatic usage of a for loop doesn't include changing counter variable in a loop's body. ^_^




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: