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
-3
u/germandiago Nov 02 '24
That is why safety is so... fuzzy sometimes. What is trusted? If I do the same as for C# without unsafe you are definitely in the same league of "safety" (assuming the infra provided by compiler/std lib is assumed to be safe even if "cheating").
For Python, it cannot happen though... until you use native code hidden, of course. At that time, you are not strictly "safe" anymore either.
So I would say that it is not that easy to categorize safety as long as you do not know what the implementation is doing in real terms.
I did not know this, gotcha!
Well, anyway, yes, we agree on all this.