by 4ad · 12y ago · 0 comments
The point of this blog post is how to enforce memory safety at compile time even when using unsafe.
Safe indexing is constant time too, unless you're out of bounds and you have to process the exception, in which case your program is wrong anyway.