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

I don't mind destructors but I don't understand your insistence that they're significantly better than defer for visibility: they're invisible and invoke a distant jump to some bit of code which might not even be in your codebase; defer is "right there" (and with proper editor support could even be made to look like it happens at the end of the function instead of where it's declared). I think they're both fine for their respective languages.


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

Search: