4 ms·
Do you know C or other languages with manual memory management? Rust requires an understanding of memory management at a level lower than what languages like Ja
by olavk 8y ago
Do you know C or other languages with manual memory management? Rust requires an understanding of memory management at a level lower than what languages like Java, Python etc. expose. The complex parts of Rust (borrows checker, lifetimes etc.) are ingenious solutions to problems which simply does not exist in a safe garbage-collected language. And most Rust tutorials assume an understanding of the difference between stack and heap allocation and so on.
You can learn all that from Rust, but it is possible you will have a better understanding of the design decisions if you have first experienced writing a C program and having it crash due to some memory management issue.
- philonoist 8y agoYes. I have a confident understanding of C. I, however, don't have knowledge of RAII and concepts specific to C++ like many have pointed out here. Thank you.
- olavk 8y agoIf you know C, I think you should just go ahead and dive into Rust.