6 ms·
As personal anecdata, this checks out. 10 years C++, mostly C++11 once it started to exist and be available. After a few years of Rust on the side, I was x2 t
by dureuill 2y ago
As personal anecdata, this checks out.
10 years C++, mostly C++11 once it started to exist and be available.
After a few years of Rust on the side, I was x2 to x3 more productive in Rust than in C++.
I regularly think that the way I express code in Rust would be very tedious to do in C++. The ingredients of the magic recipe are:
- Proper sum types (Rust's enum)
- Exhaustive pattern matching, destructuring, the initialization syntax
- The expression-orientedness
Other things that make working with Rust comparatively a joy:
- 99.9% of the time, no need to hunt for UB during reviews
- quality and "standard-ness" of the tooling: rustfmt, rustdoc, clippy, cargo