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

"for each customer in customers"

is how you'd say that in plain english. Some languages do use foreach as a keyword echoing that.

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.