D dropped in favour of C# for PSP emulator

bearophile bearophileHUGS at lycos.com
Sun May 13 03:08:46 PDT 2012


Andrei Alexandrescu:

> assumeSorted(range).contains(object)
>
> is still one line, safer, and IMHO more self-explanatory.

It's self-explanatory if the name there contains something like
"binarySearch". Otherwise it is NOT self-explanatory, I can't
assume it will use a binary search.
So it's surely not intuitive.

Bye,
bearophile


More information about the Digitalmars-d mailing list