logoalt Hacker News

Surac • today at 12:21 PM • 1 reply • view on HN

Memory safety is a nice thing if you have full control over all the code you use. But as long as there is a unsafe keeword neccersary it is futile. Any change in any unsave code may break all the nice borrow checking in only one call. I even think telling the user they are memory save but call unsafe code in the os layer is a extreme bad idea. Real memory safety needs a all or noting approach. I use rust binarys that fail with panics because something out if rusts scope goes wrong, mostly memory related


Replies

loup-vaillant • today at 1:51 PM

Panics are bloody annoying, but unless availability is a security requirement, panics are safe.

➕ show 1 reply