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
23
u/csreid Nov 17 '22
Yikes, big no from me. Maybe we're just in different worlds (probably), but handling
Nones all over the place sounds awful and anyway, if I'm indexing something out of bounds, my code is probably broken and I'd wanna know about it.If anything, it could maybe return like an
IndexOutOfBoundserror type or something, but that still makes the code pretty messy.