|
|
|
|
|
by carlmr
385 days ago
|
|
>requires either "unsafe" (which is strictly more dangerous than even C, never mind Zig) Um, what? Unsafe Rust code still has a lot more safety checks applied than C. >It’s important to understand that unsafe doesn’t turn off the borrow checker or disable any of Rust’s other safety checks: if you use a reference in unsafe code, it will still be checked. The unsafe keyword only gives you access to these five features that are then not checked by the compiler for memory safety. You’ll still get some degree of safety inside of an unsafe block. https://doc.rust-lang.org/book/ch20-01-unsafe-rust.html |
|