Michel Fortin wrote:
On 2009-01-18 10:21:55 -0500, Andrei Alexandrescu <[email protected]> said:

It's been there for a while now (since 25 Nov 2008).

http://www.digitalmars.com/d/2.0/statement.html#ForeachStatement

    .next     move the left edge of the range right one
    .retreat     move the right edge of the range left one

Each time I see this I get annoyed by the dissimilarity of the terms. "advance" and "retreat" would be much better words. Even if "advance" is three more characters, it carries much better the meaning of what is happening; "next" isn't even a verb.

I understand. Next was rather consecrated so we used that one. "Toe" comes from the "head to toe" phrase; "tail" would have been nice but its meaning in all other languages is "everything but the head".

At the highest level, any nomenclature cannot please everybody.


Andrei

Reply via email to