Hacker News new | ask | show | jobs
by petke 3785 days ago
Garbage collection only works well for memory though. Other resources like file handles, mutexes, database connections, etc. You don't want to leave those hanging. You want them to be released at once a scope is exited.