News for hackers. Stuff that matters.
Re:Zig; what I think after months of using it by polanas on Wednesday February 05, 2025 @08:31AM (#42948205)
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
Re:Zig; what I think after months of using it by lolinder on Wednesday February 05, 2025 @09:15AM (#42948738)
Exactly. Shadowing is a super important complement to Rust's immutability. Without it immutability would be less useful and therefore less used.