this post was submitted on 16 Jul 2023
1665 points (96.5% liked)
Memes
45589 readers
1368 users here now
Rules:
- Be civil and nice.
- Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I disagree. It's a while loop, because a for-loop is finite, so you can't count to infinity with it.
there is no reason for a (non-foreach) for loop to be any more or less finite than a while loop.
is just syntactic sugar for
in most or all languages with c-like syntax.