| > Can someone explain why Rust has mutability? Because it’s target domain requires reliable efficiency. > Wouldn't it be better if we could just have the compiler guarantee that functions marked as such As such what? > are doing TCO TCO is worthless, and Rust does not have TCE, nor does it care about TCE. > so algorithms would look better and had the full benefit of persistent data structures? Rust does not significantly care for persistent data structures, there are crates which provide them, but not the standard library. Rust is not a functional language. |
https://github.com/rust-lang/rfcs/issues/2691