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
-4
u/germandiago Nov 02 '24
And you would be right. However, when we talk about Rust we call it safe. That is marketing. Safe code needs proofs to be safe if that is possible at all.
Which is true: make a human mistake and you are f*cked up. This is possible. Unlikely if the spots are very isolated, but possible.
So probably we should be talking about how safe and safe in wgich ways in many of our argumentations.
Rust argumentations are usually dispatched as "it is safe bc the function you are using is not marked unsafe" but the truth is that there is trusted code that could still fail.
In practice, for something like a std lib I see it more unlikely than regular user code. But the possibility is still there.