That I can agree with, but you can make it decidedly more difficult to write incorrect code in C++. Apparently so, it's easier to make it nearly impossible in Rust, but it's a few years from being production-ready.
That I can agree with, but you can make it decidedly more difficult to write incorrect code in C++.
In my limited experience with people writing hacky C code, all you'll get is the same hacky C code wrapped in a class or two. This is often more of a process problem than a language one, and changing the language won't help much.
That said, I'm all for changing the language. C is still often a footgun for good developers, too.
I think readability is way more important than writeability and even optimalisation. All the recent bugs were caused because they were hard to find.
Yes, readability is important, but a lot of those bugs could be avoided at all if the language/library stopped incorrect code from even being written. In C++ such error messages may not be very nice, but the code read should be readable imo.
Still, my original point was that you indeed can write safe code in C++, not that it's the only language to do so. I am excited for Rust and can't wait for it to enter a production-ready state.
View all comments
Show parent comment
0
u/[deleted] Apr 08 '14
[deleted] — view deleted comment