News for hackers. Stuff that matters.
Re:Major standard library changes in Go 1.20 by kaba0 on Tuesday January 17, 2023 @03:00AM (#34410161)
Rust’s unsafe is still much safer than your average C code. The borrow checker checks inside unsafe blocks as well, you can just circumvent it through pointers.

But the great thing with unsafe blocks is that you get to create a safe API abstraction on top. You manually verify closely the unsafe parts, and if you got that short part right you can use the safe wrapper wherever you want safely.

There are no comments on this comment yet.