3 ms·
The thing I want the most from Rust in other languages is the immutability unless you use the mut keyword. I know a lot of OOP or Dynamic loving people might sc
by devjab 4y ago
The thing I want the most from Rust in other languages is the immutability unless you use the mut keyword. I know a lot of OOP or Dynamic loving people might scoff at that, but after a couple of decades in SWE I'd really like for everything to be immutable by default. It's just so much easier to maintain the code-bases and systems over those 5-10 year periods, when being smart is disabled by default.
Sure, it shouldn't be that way, but I prefer it when we design our systems for the code we write on a Thursday afternoon. You know, those days where you've been up all week because of the baby crying and you've spent too much of the day in meetings that shouldn't even have been an e-mail. Because that's the sort of code someone is going to hate 3 years down the line, and chances are that someone might even be yourself. Unfortunately things seem to be going in the opposite direction with some languages. I didn't work with C# for a while, and I was surprised to see "var" everywhere when I came back to it.