3 ms·
> Moving from C++ to Rust for a computer programmer with many years of experience in C++ must be a frustrating and humbling experience My experience was the ex
by imron 4y ago
> Moving from C++ to Rust for a computer programmer with many years of experience in C++ must be a frustrating and humbling experience
My experience was the exact opposite.
To write correct and safe C++ code you need to be tracking things like lifetimes and ownerships anyway (even in modern C++). Rust allows you offload all of that cognitive overhead to the compiler, which greatly simplifies things.
There was a short period of time needed to get used to the borrow checker, but coming from C++ I understood why it was complaining about these things so the errors didn't come across as opaque or confusing.
- pjmlp 4y agoUnless one tries to write GUI software, then it is Rc<RefCell<>> everywhere.