Re:Avoid Else, Return Early (2013)
by Too on Monday March 26, 2018 @12:10PM
(#16679920)
True, for those who don't agree, read about rule-of-zero for some expansions on this. If you have to write the same type of clean up code in multiple destructors you are doing it wrong, wrap that resource in a class that has the responsibility of managing that type of resource and forget about the destructors elsewhere.
[ Parent
| on HN ]
There are no comments on this comment yet.