Timeline for Is it OK for a function to both do-something and return-something?
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 9, 2024 at 20:49 | comment | added | JimmyJames | Nice answer. "is broken because it has a race condition" yep, and that class of errors has a name: TOCTOU In order to allow for command query separation and avoid these issues (when applicable) one can use locks but that's often problematic for various reasons. | |
| Oct 9, 2024 at 15:24 | history | answered | Jerry Coffin | CC BY-SA 4.0 |