xxxInPlace or xxxCopy?

bearophile bearophileHUGS at lycos.com
Thu Jan 20 09:45:07 PST 2011


so:

> I didn't know that, this solution is what i meant.
> So, they didn't blindly enforce functional language rules to a  
> non-functional language.

Python was designed lot of time ago by Guido that I think didn't know much about functional programming. So they have first added an in-place sort() and later they have added a more functional sorted(). D2 is more functional than Python2, and I think the behaviour of sorted() is better to be the default one in D2 :-)

Bye,
bearophile


More information about the Digitalmars-d mailing list