On 12/16/13 2:38 PM, Andrej Mitrovic wrote:
On 12/16/13, Andrei Alexandrescu <[email protected]> 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