Kotlin only treats the symptoms of null pointers, while Rust cures the disease. That’s one of the main reasons I prefer Rust.

311 points KrisPett 83 comments

When people talk about Rust, they usually focus on how fast it is. And sure, the performance is great.

But as someone who primarily works with Java, the main reason I like Rust has nothing to do with speed.

For me, it's about how Rust handles null pointers and system-level errors. Kotlin improves Java’s null safety, but it's still possible to shoot yourself in the foot. Rust, on the other hand, forces you to handle optional values and potential failures explicitly at compile time.

That change in mindset is what really sold me on Rust.

What was it that made Rust click for you?