xxxInPlace or xxxCopy?
so
so at so.do
Thu Jan 20 06:11:53 PST 2011
> You have to think of the normal sort as a performance hack, something
> that is good because copying data wastes a lot of time, if the array is
> large or if you have to sort an many small arrays. Normally in Python
> you prefer sorted(), that returns a sorted copy, unless performance is
> important. I'd like something like sorted() in D too.
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.
More information about the Digitalmars-d
mailing list