Hacker News new | ask | show | jobs
by polanas 498 days 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
1 comments

Exactly. Shadowing is a super important complement to Rust's immutability. Without it immutability would be less useful and therefore less used.