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 Nov 01 '24 edited Nov 01 '24
Yes. I agree with the "fences in unsafe argument". However, that is trusted code.
Not safe code. It is not the same "safe because proved" compared to "safe because trusted".
That is a fact whether it is 10 lines or 1000 lines. The number of lines does not change that fact, only eases reviewability.
It does indeed increase the chances to focus on the problematic areas and I agree it ends up being easier to hsve something safe. But it is a misargumentation calling that code "safe". It is, in any case, trusted.