Revised RFC on range design for D2

KennyTM~ kennytm at gmail.com
Sat Sep 13 07:53:57 PDT 2008


Pablo Ripolles wrote:
> Andrei Alexandrescu Wrote:
> 
>> Bill Baxter wrote:
 >>
 >> -- snip --
>>
>> Andrei
>>
>> P.S. The more I think of it, the more I like "tip" of the range. Short, 
>> poignant, easy to remember. Not pressing the red button just yet.
> 
> brilliant! I think "tip" is just fantastic!
> 
> "head" and "tip" wonderful couple.
> 
> yes, *this* one is as neutral as it can be! besides, the tip of something is unique! if you hold something by its toe, which one of how many are you holding? :)
> 
> -- snip --
>
> Cheers!
> 
> 

I don't think people know what rng.tip means at the first glance. I 
interpret it as a sharp, pointy object, and that makes no sense for an 
iterator/range.

I still favor "traditional" names e.g. ".tail", ".back" or ".last".

Cheers,
Kenny.

P.S. ".retreat" is a very nice name. I like it. :)


More information about the Digitalmars-d-announce mailing list