r/learnprogramming • • 6h ago

Learn rust

Could you tell me what the situation is with Rust? Is it worth learning, looking ahead to the next 5 years? Or would it be better to learn C instead?

4 Upvotes

14 comments sorted by

View all comments

8

u/Joe-Arizona 5h ago

You should learn C then Rust. A week or two tops and you’ll understand it.

Every programmer should know C, even if it’s just a little bit.

2

u/Madeche 4h ago

Yea, most concepts are interchangeable.

I did the opposite and started on Rust, then a lot of things that the compiler enforced really only clicked once I learned more C, and realised the pain of not having any guardrails like that. But with rust and cargo you have a more modern and arguably more approachable framework. A lot of things that are fairly easy in Rust are much longer to do in C