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.
224
Upvotes
View all comments
Show parent comment
1
u/robin-m Nov 18 '22
Converting, or more precisely truncating a big types into a smaller types, or going for signed to unsigned, or from unsigned to a smaller or equal size signed is definitively a recipe for disaster. But when the result type can represent all the values of the original type (like getting an
i64from au8), is this really a a source of bugs?