Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You know, the `unsafe` keyword exists. You’re allowed to use it. If your algorithm is truly safe, and as you say, there are many safe things the borrow checker cannot verify, that’s exactly what `unsafe` is for.

Ideally you can also design a safe API around it using the appropriate language primitives to model the abstraction, but there’s no requirement.



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

Search: