A friend of mine ask me why D's foreach isn't like C#

Means, why is it like
int[] arr = [1, 2, 3];

foreach (int val; arr) {

and not
foreach (int val in arr) {

which it is more intuitive.

I could give him no clever answer to, so maybe someone here knows the reasons.

Reply via email to