Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
polanas
· 1y ago · 0 comments
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
Comments
[–]
lolinder
1y ago
Exactly. Shadowing is a super important complement to Rust's immutability. Without it immutability would be less useful and therefore less used.