Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
quotemstr
on Sept 19, 2011
|
parent
|
context
|
favorite
| on:
What's wrong with this code, really?
Changing a loop counter in a loop is always a bad idea? You must implement only very simple algorithms.
schiptsov
on Sept 19, 2011
[–]
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: