logoalt Hacker News

WalterBrightyesterday at 10:13 PM1 replyview on HN

I try to minimize use of destructors for the same reason.


Replies

andrepdyesterday at 11:00 PM

Destructors run predictably at list, and are pervasive everywhere. You know that when you exit a scope, be that a function or whatever it may, the destructors of variables in that scope are called. That is clear and consistent. The transformation mentioned above is not.

show 1 reply