Maybe we don't need foreach ;-)

Reiner Pope reiner.pope at REMOVE.THIS.gmail.com
Mon Oct 30 20:56:20 PST 2006


I don't see much reason to change the syntax here, since:
  - it provides no generalizations/abstractions
  - it only saves 4 keys of typing
  - it isn't easier to read; perhaps even *harder* (you don't know 
whether it is a custom iterator or a 'normal' for loop)
  - Walter's right: it could increase bugs, such as:

      for (char[] key, char[] value; aggregate)

         which looks similar to

      for (char[] key; char[] value; aggregate)

Cheers,

Reiner



More information about the Digitalmars-d mailing list