Hacker News new | ask | show | jobs
by skariel1 3221 days ago
It is still safer than c, as it will not allow any segfaults. The only thing that can happen is a runtime error but no memory corruption so it is more akin to say Java or Go
2 comments

The context of this thread is unsafe, which can segfault.
You are describing the behavior of standard, safe rust code.

Using unsafe blocks throws all that away.