Hacker News new | ask | show | jobs
by bitwize 3200 days ago
What about the "automatically gets cleaned up when the object goes out of scope" advantage of destructors?
1 comments

You can do that with try-with-resources