D dropped in favour of C# for PSP emulator

H. S. Teoh hsteoh at quickfur.ath.cx
Sat May 12 17:48:14 PDT 2012


On Sun, May 13, 2012 at 07:34:19AM +0700, Ary Manzana wrote:
> On 5/13/12 4:13 AM, Andrei Alexandrescu wrote:
> >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
> 
> Ok. When more people start saying that they can't find a
> binarySearch method... will you change your mind? :-)
[...]

Things like this just needs to be properly documented. Just because it
isn't called "binarySearch" doesn't mean anything. We aren't trying to
reinvent C#.


T

-- 
Marketing: the art of convincing people to pay for what they didn't need before which you can't deliver after.


More information about the Digitalmars-d mailing list