3 ms·
> Any code that uses the unsafe wrappers technically must be checked If that is the case, then your unsafe wrappers are unsound. Safe functions need to be imp
by TheCoelacanth 6y ago
> Any code that uses the unsafe wrappers technically must be checked
If that is the case, then your unsafe wrappers are unsound.
Safe functions need to be impossible to use in an unsafe way or else they should marked as unsafe.
That could take the form of a runtime check that the function's invariants are maintained or a proof that the function's invariants are always maintained.