back

by anderspitman·8y ago·view on hn ↗
Ernest question: If it supports the platform you're targeting and you're not missing any critical libraries, what other reasons are there not to use Rust over C++ for new projects? Assuming of course you're not already proficient in C++.
1 comments
Maturity of the language, quantity of developers available, knowledge base ecosystem (this is more than just library availability, as it includes implementations to solve problems resulting from years of practice by thousands of engineers), interoperability with other languages' libraries, to name a few. In some cases Rust's "escape hatch" to get unsafe has more boilerplate than equivalent implementations in C++: when Rust's safety model isn't as important it might not make sense to use it.

Personally, as a person very experienced with C++ I prefer Rust when it's available on the target platform. The low level, high efficiency computations I might do use numerical algorithms that neither Rust nor C++ are very good for, although C++ is slightly better in this case.