News for hackers. Stuff that matters.
Re:Copying data is wasteful, mutating data is dangerous by pansa on Friday January 10, 2020 @02:32AM (#22009083)
There is some convention in Python - for example `reverse` and `sort` are mutating, whereas `reversed` and `sorted` are not.

However, I don’t know if there is a good reason why the mutating versions are methods and the non-mutating ones are standalone functions.

There are no comments on this comment yet.