Christophe:

> sort does not use a Schwartzian transformation, although is preferable 
> in many cases in term of efficiency: it uses a less predicate, because 
> it has been decided that it is what the user expects, am I right? If you 
> want to use a Schwartian transformation, you use schwartzSort.

I didn't agree with that design decision of Phobos, I think I said this to 
Andrei too. schwartzSort is a very handy sort, I don't like it buried by such 
long (and for me hard to write name, I am never able to remember its spelling). 
In Python3 the built-in sort is a schwartzSort.

Beside the name, I think D schwartzSort needs an improvement, because currently 
you can't give it a function like q{ a.foo }, you have to use a longer lambda 
like (Foo a){ return a.foo; }.

Bye,
bearophile

Reply via email to