3 ms·
It's more of a "Hey, trust me here when I say that the enclosed code is actually safe" hint to the compiler. It's used sparingly. Not as sparingly as I'd like,
by Manishearth 10y ago
It's more of a "Hey, trust me here when I say that the enclosed code is actually safe" hint to the compiler.
It's used sparingly. Not as sparingly as I'd like, but sparingly enough.
- afarrell 10y agoSure, but code is not just instructions to a compiler, but is also a user interface.
- Manishearth 10y agoOh, yes, as a UI it is "be extremely wary of this code" Often folks write long comments around unsafe code explaining why it is safe. Not always, sadly.