Bjarne Stroustrup’s Plan for Bringing Safety to C++ (The New Stack)

Post Syndicated from corbet original https://lwn.net/Articles/949269/

The New Stack covers
a conference talk by Bjarne Stroustrup
on turning C++ into a safer
language.

Stroustrup has arrived at his solution: profiles. (That is, a set
of rules which, when followed, achieve specific safety guarantees.)
They’d be defined by the ISO C++ standard, addressing common safety
issues like pointers and array ranges. In response to a later
question from the audience about the difficulty of adding new
tooling, Stroustrup pointed out that the C++ compiler itself is now
a pretty sophisticated static analyzer, and could also be tasked
with meeting the profile’s requirements.