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

> The only gripe I have with Rust's unsafe is that I can't mark methods with preconditions as unsafe while still requiring `unsafe` clauses within the function body.

This is being fixed in the 2024 edition. Or now, with `#[warn(unsafe_op_in_unsafe_fn)]`.



Music to my ears, thanks!




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

Search: