What Does Safety Mean?

But don't we only really care about the cases where it is actually tied to a memory safety or UB assumption? I think those are the only cases where the unsafe keyword should be used.

I tried to describe one such case: the use of unsafe for code that enforces utf8 invariants.

1 Like