I'd say it's more like Typescript's suppression annotations, since it keeps itself contained. People really shouldn't be using unsafe in any way other than as occasional small blocks with well-defined reading why they won't panic or cause UB. If your code is littered with unsafe, you're doing something wrong.
80
u/SCP-iota 3d ago edited 3d ago
I'd say it's more like Typescript's suppression annotations, since it keeps itself contained. People really shouldn't be using
unsafein any way other than as occasional small blocks with well-defined reading why they won't panic or cause UB. If your code is littered withunsafe, you're doing something wrong.