News for hackers. Stuff that matters.
Re:Copying data is wasteful, mutating data is dangerous by itamarst on Friday January 10, 2020 @07:13AM (#22010421)
Original author here: to reduce confusion I changed the article to use a new term, "hidden mutability".
Re:Copying data is wasteful, mutating data is dangerous by DougBTX on Friday January 10, 2020 @08:04AM (#22010634)
Thanks, that seems like a much better term.

With Rust-style interior mutability, any code accessing the value will see that it was mutated, but here the caller still sees a purely functional call, since the mutation is hidden.

Re:Copying data is wasteful, mutating data is dangerous by Izkata on Friday January 10, 2020 @08:55AM (#22010892)
I've heard the term "immutable facade" before for this type of thing (though granted, usually while talking about a class interface rather than standalone functions).