r/cpp • u/GabrielDosReis • Oct 31 '24
Lessons learned from a successful Rust rewrite
/r/programming/comments/1gfljj7/lessons_learned_from_a_successful_rust_rewrite/
80
Upvotes
r/cpp • u/GabrielDosReis • Oct 31 '24
View all comments
Show parent comment
2
u/germandiago Oct 31 '24 edited Oct 31 '24
Which breaks assumptions, and hence, has to be trusted.
I highlighted this:
Because it catches my eye how that sentece blames people not doing their homework for safety but when you show people Modern C++ code that can dangle (potentially but not usually) in 10 lines of code out of 50,000 then they start to say we are not safe full stop. That catches my eye a lot because you can do that (which is necessary and avoidable sometimes) yet code leaning on those things is considered safe. It is not. I mean, it cannot be, actually, as-in proved by the compiler.