When people say modern C++ was as memory safe as please show them this comment by H2CO3:

users.rust-lang.org/t/modern-c

OP: "C++ reference is always valid after it is initialized"

H2CO3: "Yeah. And as long as you don't accidentally invalidate references and iterators through shared mutability. And as long as you don't accidentally capture something in a closure by reference that doesn't outlive the closure. As long as [...]"

The list goes on.

· · Web · 1 · 2 · 2

@janriemer Also really nice (further down the thread):

"That is really well put. I'm long >25 years old of experience using C++, all standards, and in my opinion, taking my experience into account, C++ reached its end and now it is simply old technology that cannot provide to boons that modern technology like Rust provide."

Sign in to participate in the conversation
Mastodon for Tech Folks

mastodon.technology is shutting down by the end of 2022. Please migrate your data immediately. This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!