Re:Uber Go Style Guide
by sanxiyn on Friday October 11, 2019 @12:25PM
(#21225860)
Shared mutable state is evil, so "not mutable" has been proposed as a solution. Rust is different, because Rust's solution is "not sharing". You can still mutate!
[ Parent
| on HN ]
Re:Uber Go Style Guide
by reificator on Friday October 11, 2019 @12:49PM
(#21226097)
> Rust is different, because Rust's solution is "not sharing". You can still mutate!
For the record, rust does also default to immutability, and you can share immutable references all you'd like.
I would describe Rust more like a read-write lock than not sharing.