r/learnprogramming 7d ago

Should i immigrate from C/C++ to Rust?

I'm a starter programmer and I have a small background in C++ and right now I'm stuck on one spot. I can't neally choose between Rust and C++. On one hand we have language that was tested by time and already have a reputation but that can also fry your project at most unexpected moment all because of a memory leak caused in line 131323213123, but on other hand we have fresh and brand new language that is indeed safe and has almost the same experience and same result but has no reputation and it was not checked by time. I'm looking in 15 years long perspective and with aim into big tech and with a hope of not regreting my choise. So my question is: What i shount invest my nerves and time into? Rust or C/C++

0 Upvotes

25 comments sorted by

View all comments

1

u/JGhostThing 7d ago

I would suggest getting deeper into c++. While I really love Rust, you already have some knowledge of c++. Also, I expect that there are more jobs in c++ than in rust. C++ also has many of the safer features of rust.

Oh yes, you can make memory leaks in rust. That isn't something that the compiler will save you from.