
1·
3 days agoI do not mean that C++ achieved nothing, I meant that taking Safety as a mindset and education problem has not achieved anything.
score 2 · canonical

I do not mean that C++ achieved nothing, I meant that taking Safety as a mindset and education problem has not achieved anything.
score 2 · canonical

You are right but moreover.
We have tried better education for 30years. Guess what?
The problem is still there. At some point it is time to wonder why this magical solution we keep using does not produce good outcomes!
Meanwhile, in Rust, we got an actual factual use case at large scale, in real industry settings and… It worked.
So uh. One side has 30years of not achieving anything. And the other managed to make it work in less than 20 years starting from scratch.
score 1 · canonical
You explicitly show it there. It is not a mindset!
It is that doing these things are actually hard! You have to use
unsafe, you have to actually go out of your way. While some of the example in the OP are literally capably of UB silently!It is not only a mindset, the tool makes it harder to do and force you to actively search it. That is the difference. Not the mindset.
score 1 · canonical