4 ms·
It seems dubious because the FP community tends to use the expression 'immutable data structures' were 'persistent data structures' would be the proper term. A
by nestorD 7y ago
It seems dubious because the FP community tends to use the expression 'immutable data structures' were 'persistent data structures' would be the proper term.
As a matter of fact I have seen data structures, in FP language, called immutable while having operations to mutate them in place.
I believe the OP spoke of both Rust immutable data and the fact that most FP languages have only immutable datastructures (different mecanism to deal with similar problems).
- foldr 7y agoI think they were referring to an actual difference between Rust and OCaml, Haskell, etc. Rust allows you to mutate data via mutable references that are guaranteed to be unique. Mainstream functional programming languages do not allow you to do this (though linear typing may land in GHC soon).