Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
polanas
1y ago
0 comments
Save
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
0 comments
1 comments · 1 top-level
top
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