3 ms·
> Even more so, when you're only writing half the code and want to separate the actions within a function from any side-effects outside. Due to the default imm
by fnord77 7y ago
> Even more so, when you're only writing half the code and want to separate the actions within a function from any side-effects outside.
Due to the default immutability of references and the fact the compiler won't allow you to won't allow you to share data between threads (without jumping through a lot of hoops), the risk of side-effects are pretty well neutralized. Another selling point of Rust.