11 ms·
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
by simonask 1y ago
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.