builtin sort

bearophile bearophileHUGS at lycos.com
Mon Jun 10 04:16:40 PDT 2013


Jacob Carlborg:

> "reverse" is implemented with the stupid name "retro".

Nope. "retro" is a lazy range that yields in reverse direction. 
The Phobos in-place reverse for arrays is named "reverse". But 
unlike the built-in reverse returns void.


> Perhaps start with modifying the compiler to indicate the 
> "sort" and "reverse" functions are deprecated.

The first step for Issue 10318 is indeed a warning for usage of 
the built-in sort.

Bye,
bearophile


More information about the Digitalmars-d mailing list