r/rust • • 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

390 comments sorted by

View all comments

Show parent comment

1

u/smthamazing Nov 23 '22

What problems do you think are not solved by num? I haven't used Rust all that much yet, but when I needed to write calculations generic over the number type, num usually helped.

1

u/SV-97 Nov 24 '22

I don't have a ton of great examples right now - but often times when I've used it it felt like the traits and how they work together isn't necessarily great. One example of a thing I really dislike are the `FromPrimitive` and `ToPrimitive` traits and that it's missing some basic traits (`Positive`, `Negative`, `NonPositive`, `NonNegative` etc.).