Revised RFC on range design for D2

Pablo Ripolles in-call at gmx.net
Sun Sep 14 05:47:44 PDT 2008


KennyTM~ Wrote:

> 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".

Well, me too although I misinterpreted as an alternative to .toe which wasn't the intent anyway... :$

So, yes, I agree .tip is not a nice option, however not for its "sharpness"...

Cheers!


More information about the Digitalmars-d-announce mailing list