In my current position I’ve had to swap to full time Rust development. After about 2 months of full time Rust development I think I’ll likely be developing projects in Rust in the future instead of C++ when performance is important. My reasons for this are primarily:
- Just Works™ build system and crates.io makes drawing in libraries painless
- Guaranteed memory safety is pretty nice
- Syntax is much cleaner and succinct than C++, with lots of nice syntax sugar to sweeten the package
- Easily integrable with C (and therefore C++ with some massaging)
- Proc macros are pretty nice as well
- Built-in test framework
I think that point 3 is potentially the biggest factor for me as the C++ modern syntax is not what I would consider clean, especially if you are trying to use a more functional programming style. A simple example highlighting the difference: