logoalt Hacker News

zarzavat • yesterday at 11:01 PM • 2 replies • view on HN

While I don't doubt this makes C++ safer, it really has nothing to do with memory safety which is usually understood as a language-level guarantee, either through the type system (as in Rust), or through execution in a managed environment.


Replies

horseloverthin • yesterday at 11:26 PM

I think some increase in memory-safe outputs is a part of the 'memory safety story' of C++ regardless of whether this comes from type-level changes or improved constructs for memory safety.

Perhaps, a good way to describe the difference here is to clarify that contracts do not innately make C++ as a language more memory safe, but have plenty to do with the memory safety of C++ applications.

btown • yesterday at 11:13 PM

[flagged]