Template instantiation syntax

Derek Parnell derek at psych.ward
Sat Oct 11 21:54:14 PDT 2008


On Sat, 11 Oct 2008 21:07:20 -0500, Andrei Alexandrescu wrote:

> I don't see any technical difficulty with allowing foreach (x in y).

Agreed. However, to my eye, "foreach(i, x in y)" seems to read as if both
'x' and 'i' are IN 'y'. Whereas I think of "foreach(i, x; y)" as a list of
variables, of which the last one is a placeholder for elements of 'y'.
Maybe it's just me though ;-)

-- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell



More information about the Digitalmars-d mailing list