News for hackers. Stuff that matters.
Re:Rust – A hard decision pays off by nu11ptr on Wednesday August 24, 2022 @02:33PM (#32583792)
To some extent, possibly, but it is a very rich type system, and does not have null which in and of itself gets rid of a set of errors. I also find Rust culture tends to be more guarded on panicking due to having such a rich error type (Result), so panic is reserved for the worst possible "can't continue" scenarios (unlike languages with unchecked exceptions). Also, enum pattern matching is exhaustive which gets rid of errors where you simply don't account for new variants. The list goes on and on.

There are no comments on this comment yet.