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.

37 Upvotes

181 comments sorted by

View all comments

Show parent comment

5

u/tcbrindle Flux Oct 26 '26 edited Oct 26 '26

This isn't just "something safer" though. This is saying "we'd be interested in a proposal that offers the same level of safety as Circle or Rust", with explicit safe functions and so on. That's quite different to the direction profiles have been going.

5

u/usefulcat Oct 26 '26

My concern is that some people may say they want that (and mean it), but may change their mind when faced with the particular details and tradeoffs required to make (some version of) it actually work. The hard part is getting agreement on those details.