Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
schiptsov
· 15y ago · 0 comments
You need not to be a genius to immediately notice that doing
i--
inside a
for
loop is.. OK just not very smart. ^_^
Comments
[–]
quotemstr
15y ago
Changing a loop counter in a loop is always a bad idea? You must implement only very simple algorithms.
[–]
schiptsov
OP
15y ago
There are more than one loop expression. Idiomatic usage of a for loop doesn't include changing counter variable in a loop's body. ^_^