News for hackers. Stuff that matters.
Re:Copying data is wasteful, mutating data is dangerous by masklinn on Thursday January 09, 2020 @02:07PM (#22004345)
Rust would be very different and the problem wouldn't exist in the first place, because the function would signal its behaviour and intent through taking the parameter by reference, mutable reference or value.
Re:Copying data is wasteful, mutating data is dangerous by wlib on Thursday January 09, 2020 @02:17PM (#22004449)
That's what I meant