logoalt Hacker News

Panzerschrektoday at 1:38 PM0 repliesview on HN

Usually destructors can't fail. But for rare cases like with close() you can write a helper function (static method) which destroys the given object and returns an error if has one.