|
|
|
|
|
by neilv
2544 days ago
|
|
> When writing Rust one comes to learn the code that the compiler likes, and strives to write code that is free of compiler errors in the first place. I suggested that possibility, but is it generally true, or something personally true for you, or are you advocating that it would be good if people did that? |
|
So yes, if you work enough with the borrow checker, your brain will form another logical one, and that one you can use for writing C/C++ code. I have much more confident now in learning/writing C/C++ than before I learn Rust, because I feel like I can form a Rust-like design (tree-based, clear ownership/lifetime objects) and put that in using C/C++ syntax.
Definitely recommend using Rust as stepping stone to learn production-grade level C/C++.