|
|
|
|
|
by guywithahat
269 days ago
|
|
As far as I can tell, modern C++20/23 is as safe (if not safer) than rust. So much of rust compares itself to C++99, where modern C++ doesn't use exceptions, has smart pointers (RAII), improved casting and array management, and has an extensive suite of checking tools and flags. The conversations I've seen at my company for using rust tend to be "well it would be tun to do something different", which just aren't very compelling to me. I worry Rust is going to end up like Haskell in 5 or so years |
|
It is not. Rust will, for example, prevent the following memory-safety issue from compiling:
(This sort of pattern is responsible for nearly 100% of the C++ memory safety issues I know I've committed in the past several years.)