between and among: worth Phobosization?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Dec 16 14:59:43 PST 2013


On 12/16/13 2:38 PM, Andrej Mitrovic wrote:
> On 12/16/13, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
>> There's quite a bit of evidence in support of among (not as much for
>> between) in the source code of Facebook's cpplint, soon to be open
>> sourced. Here are some relevant quotes:
>
>>From first glance it seems you're always using among when needing a
> boolean result, so why does among have to return an index instead of a
> boolean true/false?

More info is better than less info, especially if it comes for free. We 
already use this idiom in a couple of places in Phobos.

Andrei




More information about the Digitalmars-d mailing list