D dropped in favour of C# for PSP emulator

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat May 12 14:13:47 PDT 2012


On 5/11/12 10:38 PM, Ary Manzana wrote:
> Add a binarySearch(range, object) method that does all of that?
>
> I mean, I don't want to write more than a single line of code to do a
> binarySearch...

assumeSorted(range).contains(object)

is still one line, safer, and IMHO more self-explanatory.

Andrei


More information about the Digitalmars-d mailing list