Hacker News new | past | comments | ask | show | jobs | submit login

> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: