Revised RFC on range design for D2
Bill Baxter
wbaxter at gmail.com
Fri Sep 12 08:00:11 PDT 2008
On Fri, Sep 12, 2008 at 11:39 PM, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> Pablo Ripolles wrote:
>>
>> What about "isDone"?
>
> isDone is great, I just wanted to keep the one-word streak going. Let's see
> what everyone else says.
Hmm. std.algorithm does have an "isSorted" function. So I guess I
agree it would be more consistent if you call it isDone or isEmpty.
Or rename "isSorted" to "sorted". :-) But then you have to face the
consequences later when you want to have a predicate that is ambiguous
without the "is". Probably a lot of noun predicates are in that
category -- i.e. checking isSomeNoun(x). Like "isRange(x)" to see if
x is a range. That would have to just become "range(x)" which is a
bit ambiguous.
So I agree. Stick the "is" in there.
--bb
More information about the Digitalmars-d-announce
mailing list