foreach, an analogy
Walter Bright
newshound at digitalmars.com
Thu Oct 19 03:03:21 PDT 2006
Vladimir Kulev wrote:
> I just want to put my heartfelt cry here. Foreach_reverse is evil! I like D,
> but such a things just increase probability that it never will be not a
> toy. Implement an iterators integration into foreach, or do something else,
> but do in intensive way, not extensive!
> Walter, read some books about language architectures and design, please!
> There are lots of info in the Internet.
Not many programmers can implement an iterator correctly. For the moment
let's assume that's not an issue. But still foreach is much more likely
to be done correctly, and it is much easier to look at it and see that
it is correct.
More information about the Digitalmars-d-announce
mailing list