Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Rochus
· 1y ago · 0 comments
This is a completely valid and reasonable argument; I don't understand why people are downvoting it.
Comments
[–]
dgellow
1y ago
Because it seems fairly obvious you can use a standard `for` if you need more control over the iteration.
[–]
Rochus
OP
1y ago
The 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.
[–]
90s_dev
1y ago
Votes on HN are fairly random.
[–]
Rochus
OP
1y ago
So we should get rid of them, especially the downvotes.