Rust didn’t introduce this language, they adopted it. Memory safety has been called that as long as I’ve been programming.
Using the antonym of safe was a natural move, though with the benefit of hindsight, `danger` would have been a better keyword.
After all, good unsafe code isn’t unsafe! It is dangerous though, because it forgoes guarantees of memory and resource safety provided by the compiler.
Using the antonym of safe was a natural move, though with the benefit of hindsight, `danger` would have been a better keyword.
After all, good unsafe code isn’t unsafe! It is dangerous though, because it forgoes guarantees of memory and resource safety provided by the compiler.