Hacker News new | ask | show | jobs
by baq 2545 days ago
at that point you're getting the worst of both worlds: no safety guarantees and a very complex language.
1 comments

Unsafe Rust has significantly more safety guarantees than C or C++. It doesn't disable the type system, bounds checking, ownership tracking or borrow checking.
What does Unsafe Rust disable then?
It does not disable, it enables. Unsafe doesn't turn anything off, it adds new capabilities instead. https://doc.rust-lang.org/nomicon/what-unsafe-does.html