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

0

u/CocktailPerson Nov 19 '22

Stick to the serious part if you want to be taken seriously.

You say you come from C. That was my first programming language too. Have you used a language with overloading to any significant extent?

People made the same argument about "questionable ergonomic benefit" and "doesn't increase expressiveness" about the ? operator, too. Do you have an opinion based in actual experience with languages that allow overloading?

1

u/MrTheFoolish Nov 19 '22

Stick to the serious part if you want to be taken seriously

Drink a cocktail and lighten up, CocktailPerson.

I primarily write C# these days. I have read through and used code with overloaded methods and didn't think much of it. Not offensive to my eyes, but not groundbreaking. Not something I'd want any of the Rust team to work on over other features.

The comparison to the try operator is a bad one. Everything has its naysayers. Try is applicable to a large portion of Rust code. Method overloading applies to the small subset of functions that are semantically equivalent but take different inputs.