RFC on range design for D2

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Sep 9 04:12:41 PDT 2008


Bill Baxter wrote:
> On Tue, Sep 9, 2008 at 1:06 PM, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>> Manfred_Nowak wrote:
>>> Andrei Alexandrescu wrote:
>>>
>>>> maybe "nextTo" or something could be more suggestive.
>>> r.tillBeg(s), r.tillEnd(s),
>>> r.fromBeg(s), r.fromEnd(s) ?
>> Sounds good! Walter doesn't like abbreviations, so probably *Begin would
>> please him more.
> 
> But till and until are synonyms.  They both sound like iteration.
> Although it might be unavoidable since all prepositions that give a
> destination seem to imply going to that destination.  till, until,
> toward, to, up to, etc.  So might as well go with the shortest one,
> "to".
> 
> r.toBegin(s), r.toEnd(s)
> r.fromBegin(s), r.fromEnd(s)

These are the names that I find most appealing at the moment. They 
required the fewest neurons to fire when glancing over them and mapping 
them to the needed operations.

Andrei


More information about the Digitalmars-d-announce mailing list