Re:Immutable.rs: immutable data structures for Rust
by cryptonector on Friday April 06, 2018 @06:03PM
(#16777870)
Absolutely. This is one very good use case.
Say you have a configuration to read and share with all threads. Each thread can make local changes that will not be visible to the others. The API looks like it's mutating the shared object, but it's actually mutating a copy.
Say you have a configuration to read and share with all threads. Each thread can make local changes that will not be visible to the others. The API looks like it's mutating the shared object, but it's actually mutating a copy.