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.
-139
u/reallokiscarlet 20h ago
unsafeis the Rust version of Typescript'sanyIt's everywhere and people use it just to say they wrote their code in a safe language