C++ creator rebuts White House warning

seth@lemmy.world to Programming@programming.dev – 145 points –
C++ creator rebuts White House warning
infoworld.com

Python is memory safe? Can't you access/address memory with C bindings?

97

You are viewing a single comment

Do you have a link?

That first link is about a document from 2006, while C++ became a lot safer with C++11 in 2011. It's much easier to write safe C++ now, if you follow current guidelines:

https://isocpp.github.io/CppCoreGuidelines/

Yeah the standards for safe C++ haven’t changed, no matter how much the language changes.

I would say the standard has changed. The current guidelines require you to use features that didn't exist before C++11. C++11 was a huge change and it made C++ a lot nicer. The updates since then have generally been improvements but more incremental than revolutionary.

Dude core guidelines is like 2000 pages, C++ is a meme language

Print from html to PDF in a browser was 708 pages, so maybe half that if printed like a book (less whitespace etc.). About like a Rust textbook. Still a lot I guess.

Seems very reasonable, apart from an arbitrary number of assertions required per function