Sure, for new projects I choose Rust over C++ whenever feasible.
But a huge amount of the worlds software is written in C++, and will remain so for decades.
Getting some of that code to run well in WASM can be a big win for certain domains.
Re:Hands-on WebAssembly
by stjohnswarts on Wednesday August 26, 2020 @05:41PM
(#24287614)
Modern C++ has a lot of memory safe operations if you use them (smart pointers, atomics, actually using RAII properly and universally), although I'm not sure how much overhead they might add to a wasm blob. Rust seems almost perfect for it though, but no reason to discourage C++ people; it can be a relatively modern language if you let it.
I’d still choose Go or Rust over C++, though, because they’re memory-safe. This recent discussion shows that’s still important in the context of WebAssembly: https://news.ycombinator.com/item?id=24216764