3 ms·
> For me, in large part, the borrow checker is encoding in the compiler rules that you should be following in C++ anyway. My experience was sort of the inverse
by returningfory2 3y ago
> For me, in large part, the borrow checker is encoding in the compiler rules that you should be following in C++ anyway.
My experience was sort of the inverse of yours: I knew a little C++ before learning Rust, and being educated by the borrow checker has really helped me writing C++.
- mrtngslr 3y agoI've seen that too: having experience with Rust made C++ feel easy. I looked at C++ many years ago but never used it professionally. About 6-7 years ago, I learnt Rust and a few years later, I started working full time in a C++ team at Google. There are many things in the Google C++ Style Guide[1] that reminds me of Rust, from the ban on exceptions to the use of `std::optional` for optional inputs and outputs. [1]: https://google.github.io/styleguide/cppguide.html https://google.github.io/styleguide/cppguide.html