Hacker News new | past | comments | ask | show | jobs | submit login

is any rust code some way immune to unsafe blocks?



That's a little different. If you're running a C linter that statically guarantees safety, then it's comparable; otherwise, you're comparing mostly Safe Rust (with some Unsafe Rust in it) to Unsafe C.

Safe Rust is automatically immune to lots of these issues. Unsafe Rust isn't, but all of C is unsafe (unless you're using a safety-enforcing linter that only gives you access to a subset of the language).




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

Search: