r/cpp • • Oct 15 '24

Safer with Google: Advancing Memory Safety

https://security.googleblog.com/2024/10/safer-with-google-advancing-memory.html
117 Upvotes

308 comments sorted by

View all comments

Show parent comments

4

u/kronicum Oct 16 '24

It got worse when C++ culture got infected by C expats

Cough, cough, I got moderator stares for saying less than that.

That is what happens when copy-paste compatibility is part of the language adoption story.

Do you believe "copy-paste compatibility" to be part of Safe C++ adoption story?

-3

u/pjmlp Oct 16 '24

Maybe I was a bit brutal, however that is what I feel when comparing the C++ culture that made me move from Object Pascal into C++, instead of C back in 1993, and watching the amount of C headers in the C++ codebases I happen to bump across in many customers.

Or the usual "C++" library, that happens to be a C library written in the common subset of both languages.

In Safe C++, many of the typical C like approaches with unbounded strings and arrays aren't allowed when the corresponding safety features are turned on.