News for hackers. Stuff that matters.
Re:Thread Safety in C++ and Rust by ReactiveJelly on Saturday December 18, 2021 @10:10PM (#29610985)
Nah, I like having immutable syntax be shorter. It makes idiomatic code shorter than code that does a lot of mutating
Re:Thread Safety in C++ and Rust by saghm on Saturday December 18, 2021 @10:41PM (#29611105)
Agreed! I also like that declaring a mutable binding is extra code beyond a regular binding rather than something the same (or shorter). At least for me, making things immutable by default and then only relaxing it when necessary leads to code that tends to be less buggy, and I suspect this might be true for others as well.