3 ms·
Original author here: to reduce confusion I changed the article to use a new term, "hidden mutability".
by itamarst 7y ago
Original author here: to reduce confusion I changed the article to use a new term, "hidden mutability".
- DougBTX 7y agoThanks, 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.
- Izkata 7y agoI'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).