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

Even in GC languages, you almost always want to free the resource at the end of a lexical scope, usually the same one where it was acquired. What if instead of requiring special syntax (defer, try-with-reaource, with etc.) for the normal case where you want it freed at the end of scope, you use special syntax to specify it shouldn't be automatically cleaned up, because it is persisted somewhere else?


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

Search: