News for hackers. Stuff that matters.
Re:Copying data is wasteful, mutating data is dangerous by nnq on Friday January 10, 2020 @06:11AM (#22010161)
Just use a bool parameter `inplace` (or a reference `out`), defaulting to false, but passing it as true for the "hot path" code that needs in-place modification. You get performance, non-duplicated code, and an API style that datascience and ML people are already used too from Numpy, Pandas etc.

There are no comments on this comment yet.