foreach syntax

Namespace rswhite4 at googlemail.com
Fri Jun 29 09:09:54 PDT 2012


It wasn't my intention to start a syntax war. :D
But i must agree, that "in" is a lot more readable as ";". Event 
":" ist more readable as ";". But i just would know the real 
reason to this decision. Tanks to all. :)
But why correct a few guys here my code?
foreach (int val; is the same as foreach(val; except that i like 
to write which type "val" is. Is that against the D nature or 
what?

P.S.: Which line must be changed to allow the "in2 syntax?
Just out of pure interest. Thanks.


More information about the Digitalmars-d-learn mailing list