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
1
u/robin-m Nov 19 '22
If you rely instrong typing you are not going to expose primitive type like
f32butstruct Meter(f32)so I don't see how upcasting prevent logic errors.And for the performance implications, either it doesn't matter or it will show in your profiler in your hot loop.
I consider your arguments quite weak, but this doesn't mean that you are wrong, just that I'm not conviced yet.