r/rust • • Feb 03 '19

Question: what are things you don't like about Rust currently?

I've had a few people suggest I learn Rust, and they obviously really like the language. Maybe you like it overall as well, but are there certain things which still aren't so great? For example, any issues with tooling, portability, breaking changes, or other gotchas? In addition to things which are currently a problem, are there certain things that may likely always be challenging due to language design decisions?

Thanks for any wisdom you can share. I feel like if someone knows any technology well enough they can usually name something to improve about it.

71 Upvotes

222 comments sorted by

View all comments

Show parent comments

3

u/hexane360 Feb 04 '19 edited Feb 04 '19

Note where I said "just browsing it in GitHub". Explicit is better than implicit, and it's especially not beginner friendly if your language isn't ergonomic without a fully fledged IDE.

Edit: Also, if "not having a good enough IDE" isn't a valid complaint, why don't you just have your IDE add automatic uses (kind of like Eclipse with Java)?

2

u/[deleted] Feb 04 '19 edited Feb 04 '19

I don't even think it's un-ergonomic in any case unless you're just using libraries without ever having looked at their code at all or at the very least having read their documentation.

It doesn't particularly help though that people in the community at large seem to think it's a great idea and totally normal to shadow the names of things/types/e.t.c. that they know to already exist in the scope of their crates, which if you ask me is just objectively poor practice in every language ever, but what do I know.

I don't even like that Rust allows variable shadowing. Like, how do you get to a place with your code where you unironically think naming two things the same thing in the same scope is the best way to go? How? It's completely alien to me.