Ask HN: What is the state of C++ vs. Rust?
Long time C++ dev here(~15 years) currently loving Rust. Someone can probably put together a more eloquent comment however here&#x27;s my top marks.<p>1. No memory corruptions&#x2F;null pointers. Legit holds up to the promises here.<p>2. The path of least resistance is single-ownership which is far and away the best way I&#x27;ve seen to structure C&#x2F;C++ applications.<p>3. Cargo: Pure awesome. Simply one of the best dependency management&#x2F;build tools I&#x27;ve used.<p>4. Dead simple x-platform support. Windows, Linux, all just works. Heck I just built an android arm-eabi target yesterday on windows with no NDK&#x2F;etc.<p>5. Tagged unions, pattern matching. The best effing iterator class I&#x27;ve seen bar none. Once you&#x27;ve used these you don&#x27;t want to go back.<p>6. Great built-in unit testing support(combines with Cargo above).<p>7. Amazing community, no ego and tons of people happy to help.<p>I still work regularly on C++0x11 codebases but any greenfield stuff I&#x27;ve moved over to Rust fulltime.<p>I still like C++ but it&#x27;s so much more painful to use. Heck just earlier today I got bit by &lt;locale&gt; not compiling on OSX due to some obscure compiler differences that worked on MSVC and GCC. There&#x27;s certainly good improvements coming to C++ but they have to support so much legacy code that I don&#x27;t think they could ever make the large breaking changes that Rust has to produce a better experience.