What's the better way to do it? A normal for loop that counts up?
-
-
-
IMO, yes. If your language has a range construct, that's better. But when you're just using a loop to do something `n` times, I think ++ is better than -- because my brain just erases the whole thing and immediately sees "range".
- 2 more replies
New conversation -
-
-
What about for (i = n; i--;) {}
-
You monster! (I used to love this as well as)
End of conversation
New conversation -
-
-
The number of people seriously interested in your nonsense tweets continues to astound me. Also who uses for loops when while loops are more efficient? Is nobody worried about the Big O of the C translation???? Comeon people!!!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.