Absolutely, even Array.forEach loops should largely be avoided: https://stackoverflow.com/questions/44931389/creating-promises-in-for-of-loop-instead-foreach/45066650#45066650 …
-
-
-
C-Style Loops are better than Array.forEach if your intention is side-effects
End of conversation
New conversation -
-
-
Why?
-
There are too many possible ways to write an erroneous increment or starting value.
- 2 more replies
New conversation -
-
-
Why? Except "you can do it wrong"?
-
Too much side effects that are hard to prevent. That's my understanding.
- 1 more reply
New conversation -
-
-
Then how am I supposed to solve iteration problems in C? Am I doomed to use for loops?
-
this is for other languages other than C.
End of conversation
New conversation -
-
-
Also: having loops
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
- 1 more reply
New conversation -
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.