Isn't it weird that language stdlibs don't have support for atomically replacing files? Why is there no C++ or Rust stdlib feature which, on UNIX, implements the "create temporary file on the same volume, write to that file, rename into place" pattern
It's not like it's an incredibly difficult piece to write by hand, but there are subtle gotchas. Given that it ought to be the default way programs replace e.g state files, it ought to be supported by the stdlib, no?
