News for hackers. Stuff that matters.
Re:Comprehensive Rust: course used by the Android team at Go... by returningfory2 on Tuesday May 23, 2023 @09:45PM (#36053059)
> 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++.

Re:Comprehensive Rust: course used by the Android team at Go... by mrtngslr on Wednesday May 24, 2023 @03:39AM (#36055151)
I'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