3 ms·
Yes, from the compiler point of view, that's the idea, and it is right there in the manual "Trust me, I know what I’m doing.". But the keyword "unsafe" has bee
by GuB-42 5y ago
Yes, from the compiler point of view, that's the idea, and it is right there in the manual "Trust me, I know what I’m doing.".
But the keyword "unsafe" has been used in C# for quite a while, and probably in other languages too. So by the time Rust came out, it was already a well understood concept.
In the C# manual: "the execution engine works to ensure that unsafe code cannot be executed in an untrusted environment". Still that notion of trust.
One problem I see with "trust_me" or maybe "trusted" is that it gives the opposite message from a user point of view. Trusted code is code the compiler should trust but that you should not trust.
- jacquesm 5y agoTrust me, I know what I'm doing is exactly what every C programmer thinks when writing code.