top | item 20430840

(no title)

sbov | 6 years ago

Rust doesn't let you have a mutable reference while you have immutable ones. It's only a problem in Rust because mutating the underlying data would cause problems for chunks of code using the immutable data.

But in Clojure it's not a problem. I find lots of applications where working with stale, consistent data is just fine.

Also, if you ever need to rewind your state Clojure's immutability makes it trivial. I've used this in e.g. latency compensation for multiplayer games.

discuss

order

skybrian|6 years ago

If you choose to create immutable snapshots of your objects, I imagine the same could be done in Rust?