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.
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.