Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You usually want to release non-memory resources deterministically, but finalizers in C#/Java/Go are not deterministic. That's why finalizers usually are not used for resource management. Instead, C# has using statements, Java try-with-resources, Go defer statements.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: