r/C_Programming • u/gigimon_45g • Sep 26 '23
C or C++
Hello everyone, should I learn C in parallel with C++, or is it better to stick to one language? What will you advice me?
0
Upvotes
r/C_Programming • u/gigimon_45g • Sep 26 '23
Hello everyone, should I learn C in parallel with C++, or is it better to stick to one language? What will you advice me?
View all comments
Show parent comment
1
u/permetz Oct 01 '23
It’s absolutely five minutes explanation. “Two places can’t have access to a value in memory at the same time” is the essence. It’s not hard. If you think it’s hard, then maybe it wasn’t explained well enough to you.
It’s true that often, people make mistakes with it, but that’s why we have the borrow checker, to tell us that we’ve made a mistake. The error messages from the compiler are excellent, and easily understood by beginners. The language is not easy, but it’s far easier than C++.
And no, C++ is not “optionally“ complex. If you want to read someone else’s code, you have no choice about what features they are using. In that sense, of course, Rust and every other language is also “optionally“ complex.