Y
Hacker News
new
|
ask
|
show
|
jobs
by
willcipriano
2144 days ago
Python's "for customer in customers" can't be clearer in my opinion.
1 comments
harry8
2143 days ago
"for each customer in customers"
is how you'd say that in plain english. Some languages do use foreach as a keyword echoing that.
link
WorldMaker
2143 days ago
In math you have the "for all customers there exists a customer that". Maybe I should write up a formal INTERCAL proposal that this should be the proper loop construct in 2020, spelled out in plain Math English like that.
link
is how you'd say that in plain english. Some languages do use foreach as a keyword echoing that.