Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
polanas
1y ago
0 comments
Share
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
undefined | Better HN
0 comments
default
newest
oldest
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.
j
/
k
navigate · click thread line to collapse