D dropped in favour of C# for PSP emulator

bearophile bearophileHUGS at lycos.com
Wed May 16 00:29:00 PDT 2012


Kirill:

> How about users who don't know what binary search is. binary 
> search is an intuitive concept for people who have good 
> programming experience but assumeSorted(r).contains(x) is more 
> intuitive to higher level users.

Even if you don't know the name "binary search" (something that 
all CS students learn very early in their studies, a concept that 
is also taught in "Unplugged CS" to little children) how can you 
be sure that "assumeSorted(r).contains(x)" will perform a "fast 
search" like when you search people names in a sorted sequence?


> So in short, I support that Andrei aims for larger audience.

Then why is Andrei using the name std.algorithm.schwartzSort? For 
every 20 CS students and programmers that know what a "binary 
search" is, you probably get only 1-4 that know what a "Schwartz 
Sorting" is. So I think your explanation of Andrei aim doesn't 
hold water.

Bye,
bearophile


More information about the Digitalmars-d mailing list