Re:C++ the Good Parts (2014)
by masklinn on Thursday October 01, 2020 @07:49AM
(#24649836)
All the construct you’re mentioning are nice and useful but they are solely lexical, this means unlike RAII you can’t protect every use of the resource, if you need to return or pass along sais resource they will not work for instance.
RAII is strictly more powerful and more regular than context managers.
RAII is strictly more powerful and more regular than context managers.