3 ms·
If you’re talking about a “for (initialize; condition; step) { body }” for loop, most newer languages don’t have them AFAICT. I would say the other kind of for
by wwright 7y ago
If you’re talking about a “for (initialize; condition; step) { body }” for loop, most newer languages don’t have them AFAICT.
I would say the other kind of for loop, a “for x in y { body }” loop, is very intuitive and obvious to most English speakers. We use idioms like “for each A, do B” all the time.
- emodendroket 7y agoI meant the C-style one and they do appear in most commonly-used languages, though I guess most commonly-used languages are not all that new.