r/rust • u/rustacean1337 • Nov 17 '22
What are Rust’s biggest weaknesses?
What would you say are Rust’s biggest weaknesses right now? And are they things that can be fixed in future versions do you think or is it something that could only be fixed by introducing a breaking change? Let’s say if you could create a Rust 2.0 and therefore not worry about backwards compatibility what would you do different.
220
Upvotes
View all comments
Show parent comment
2
u/[deleted] Nov 18 '22
Totally agree! I think it depends on what is meant by learning curve.
The learning curve to make something that kinda, mostly works, doesn't need to be maintained and runs sufficiently fast... Rust is the worst imo, worse than C/C++. Those languages are full of inconsistencies, but they often just run the terrible mess you wrote. On the other hand, the borrow checker really likes to kick you while you're on the ground if you don't play by its rules. Completely different languages like Python and Go take the first place here, Rust is simply not a top contender.
The learning curve to create a robust, correct, perfomant and non-trivial program... Rust takes the cake, best in class, no competition in sight.
I personally do not care about the first definition, I'm not interested in writing software like that. But I've come to learn that others do. I don't think Rust should strive to compete in that space, but we need to be aware that some people care about that use case.
I've litterally had discussions with my boss about Go where he was like, it's not that bad to crash on a nil pointer dereferences in production. You get a bug report, fix it and redeploy.