Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The problem is that's untenable; any nontrivial program will have unsafe somewhere

I'm up to 47,000 lines of Rust with no "unsafe". The main program starts with

#![forbid(unsafe_code)]

and that applies to the entire program, although not external crates. If you're not using foreign functions, you don't need "unsafe".

Some published crates I use do have "unsafe", more than they should. This is annoying.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: