4 ms·
Honestly, I think what you describe is a much more defensible claim--in fact, I suspect it's true that the vast majority of bugs in C++ code aren't memory safet
by pcwalton 4y ago
Honestly, I think what you describe is a much more defensible claim--in fact, I suspect it's true that the vast majority of bugs in C++ code aren't memory safety. I've often seen the stronger claim that memory safety problems don't come up at all in idiomatic C++, though, and that isn't true.
- templix 4y agoFun fact: There's been a number of spectacular memory safety bugs in Rust programs where you have no option but to go unsafe. Which, in real systems programming, is quite often... Zig is vastly safer than Rust unsafe. That's worth noting. So while Rust's memory safety features is something I love, I absolutely hate the Rust community pushing mem safety as a panacea. In my line of work, as an embedded programmer, Zig is vastly more appropriate. Rust and Zig can co-exist just fine.