|
|
|
|
|
by skitter
925 days ago
|
|
C++ makes it very difficult to write safe interfaces. You can't expose references, nor spans, nor variants, no shared_ptrs to things that can't be thread-safely overwritten, nor any standard library containers nor a lot of other things. And even if you only use whatever few interfaces remain safe, the interfaces you create are unsafe by default too. As a result, these unsafe interfaces are everywhere. I'd contend that using Rust for anything nontrivial results in MaybeUninit & co being common. |
|