News for hackers. Stuff that matters.
Re:Using unwrap() in Rust is okay by int_19h on Saturday August 13, 2022 @04:18PM (#32453399)
It happens because a piece of code that was supposed to execute atomically ended up having an exception in the middle - so one assignment did execute, while the other one did not.

If you can well and truly isolate the state that concerns a single request from any other state, then yes, it is safe. The problem is proving that such isolation holds.

Memory-safe or not doesn't actually matter much here.

There are no comments on this comment yet.