u/peppermilldetectivein r/rust • Recommends
On “Resources about how rust is better than OOP with code examples?”
Personally, rather than saying "Rust is better than X language for N reasons", it's better to instead look at "Why is composition better than inheritance?", "Why is not having null a good thing?", "What is ownership?", and "What are lifetimes?" instead. I say this because your question seems to be less "Why is Rust better?" and more "Why is the *mindset* behind Rust better?". While there are things inherently wrong with OOP, the ideas behind what make Rust good are actually applicable to any language, it's just that Rust enforces them at compile time.
In terms of Rust v. Java, I could only find:
- This post to r/rust
- This blog post comparing a few different languages based on HTTP perfo…