Re:Ask HN: Why is there not a memory-safe C?
by dvfjsdhgfv on Thursday May 24, 2018 @08:13AM
(#17143180)
> If you never do anything of those your program is anecdotally memory safe
At the same time your C becomes a very special variant of C. When you use the constructs from the SEI CERT C Coding Standard, a lot of things becomes much more complicated than usual. You are more careful, but at the same time spend more time writing code. And even if you do all that, of course you can never be sure about third-party libraries.
At some point I just gave up and switched to D, with no regrets.
At the same time your C becomes a very special variant of C. When you use the constructs from the SEI CERT C Coding Standard, a lot of things becomes much more complicated than usual. You are more careful, but at the same time spend more time writing code. And even if you do all that, of course you can never be sure about third-party libraries.
At some point I just gave up and switched to D, with no regrets.