3 ms·
This is a completely valid and reasonable argument; I don't understand why people are downvoting it.
by Rochus 1y ago
This is a completely valid and reasonable argument; I don't understand why people are downvoting it.
- 90s_dev 1y agoVotes on HN are fairly random.
- Rochus 1y agoSo we should get rid of them, especially the downvotes.
- dgellow 1y agoBecause it seems fairly obvious you can use a standard `for` if you need more control over the iteration.
- Rochus 1y agoThe argument is still reasonable. The OP didn't claim that there is no "for" loop, but that the "foreach" is a high-level construct which is not intuitively comprehensible and thus doesn't fit to the C3 language design.