3 ms·
> It exists to disable various conservative compile-time checks There is a subtle but important distinction here. Unsafe does not disable any compile time chec
by steveklabnik 7y ago
> It exists to disable various conservative compile-time checks
There is a subtle but important distinction here. Unsafe does not disable any compile time checks. It adds additional constructs which are not checked.
- umanwizard 7y agoThank you, you are right. It enables certain constructs, e.g. dereferencing raw pointers, which have fewer compile-time checks than safe constructs, e.g. references.