Or to put it another way....

RAII should be

"Taking Ownership of a Resource is Initialization, and relinquishing ownership is automatic at the object life time end, but Failure to Acquire a Resource Is Not An Exceptional Circumstance"

Not as catchy, but far less problematic.


Reply via email to