News for hackers. Stuff that matters.
Re:What Is Rust's Unsafe? (2019) by wheelerof4te on Sunday April 10, 2022 @03:47PM (#30980982)
"From Rust's point of view, "HellPortal::unchecked_open()" is safe, it's thread-safe, it's memory safe... but it will summon demons that could destroy mankind if the warding field isn't up, so, that might need an "unsafe" marker and we can write a checked version which verifies that the warding is up and the stand-by wizard is available to close the portal before we actually open it, the checked one will be safe."

"The only thing they fear is you"

playing in the background.

There are no comments on this comment yet.