overly strict semantics
overly strict semantics
Posted Jan 15, 2026 0:18 UTC (Thu) by milesrout (subscriber, #126894)In reply to: overly strict semantics by joib
Parent article: READ_ONCE(), WRITE_ONCE(), but not for Rust
The worst part of the design is _Atomic/std::atomic. Atomic operations are atomic *operations, the operations are atomic. There is nothing inherently atomic or non-atomic about the operands themselves. The operator overloading is also a plain bad idea.
