3 ms·
> It's not as hard to use correctly as people pretend it is (though I admit that years of experience and studying are required) The original statement and the
by simiones 4y ago
> It's not as hard to use correctly as people pretend it is (though I admit that years of experience and studying are required)
The original statement and the one in parens are directly at odds with each other. If every C++ dev requires years of experience and studying to use correctly, it follows that they have left years worth of code that is not done correctly in their wake. Also, no other (non-esoteric) language requires this high a barrier to write correctly.
> if you can use it relatively well you can write safe code without much trouble
And yet there isn't a single large C++ project that doesn't suffer from violations of memory safety - the one class of bugs that we know how to eliminate completely, if using a proper runtime system.
- menaerus 4y ago> violations of memory safety - the one class of bugs that we know how to eliminate completely, Do we? Why exactly do we need sanitizers in Rust then?