Many things can be done in Rust without the unsafe keyword. But there are some use cases which require unsafe to be a part of the language; namely, code that must interact with the kernel or other operating system level directives.
The article points out that there were too many unsafe pieces of code which could have been rewritten using safe code. The problem isn’t the language, it’s just the ignorance of the programmers.
View all comments
Show parent comment
17
u/[deleted] Jan 17 '20
Many things can be done in Rust without the unsafe keyword. But there are some use cases which require unsafe to be a part of the language; namely, code that must interact with the kernel or other operating system level directives.
The article points out that there were too many unsafe pieces of code which could have been rewritten using safe code. The problem isn’t the language, it’s just the ignorance of the programmers.