News for hackers. Stuff that matters.
Re:C++ the Good Parts (2014) by gpderetta on Thursday October 01, 2020 @10:09AM (#24650951)
RAII is great for transactions. In a proper robust design, commits should always be explicit and destructors only rollback uncommitted transactions. If your rollback can fail, well, then you have bigger issues.

There is now enough introspection in the language to actually implement implicit commit in a non exceptional path, but I think it would be a mistake.

There are no comments on this comment yet.