r/cpp • • Sep 16 '26

CppCon CppCon

https://cppcon.org/2026/
56 Upvotes

19 comments sorted by

View all comments

Show parent comment

3

u/JimBerlageDev Sep 18 '26

Super interesting post. I know that no_dangling is technically what that means, and profiles are broader than just safety/unsafety, but it's interesting to compare it with unsafe.

In practice, C++ programmers will need a mental model that you just have to check uses of no_dangling (similar to Rust programmers needing to check unsafe.)

But unsafe implies "this might be wrong, use caution" while no_dangling implies "someone else has vetted this, you're good." I expect programmers to treat them differently, and I'd expect more bugs with no_dangling.