7 ms·
In case of rust, it actually happens quite often. I find myself rarely needing to use mut, instead using functional approaches such as iterators and expressions
by polanas 2y ago
In case of rust, it actually happens quite often. I find myself rarely needing to use mut, instead using functional approaches such as iterators and expressions. So a high percentage of the code is let statements
- lolinder 2y agoExactly. Shadowing is a super important complement to Rust's immutability. Without it immutability would be less useful and therefore less used.