r/cpp • • Oct 22 '26

Revisit Safe C++

Everyone is aware of the deluge of vulnerabilities now hitting critical software. It even makes the mainstream news, so software safety is coming onto politician's radars.

If this gets worse, I think it is not inconceivable that at some point memory safe software becomes mandatory. Or at least for software that is "reachable" from the internet.

So is it time to revisit Sean Baxter's Safe C++? Start out with a safe context ("safeexpr") and expand from there, just like constexpr.

36 Upvotes

181 comments sorted by

View all comments

Show parent comment

-3

u/wyrn Oct 23 '26

Then why didn't you simply say "no" when I asked the same of you?

6

u/James20k P2005R0 Oct 23 '26

Because I think the real answer to security is much more interesting personally

3

u/wyrn Oct 23 '26

I mean yeah it is interesting that you moved the goalposts when it came to defending one particular language, but probably not in the way you intended.

2

u/James20k P2005R0 Oct 23 '26

I'm an advocate for making C++ memory safe, not for using Rust

1

u/wyrn Oct 23 '26

If that's the case, why didn't you answer the person above with some point germane to that, instead of going for a "gotcha" question you couldn't even answer yourself?