Hacker News new | past | comments | ask | show | jobs | submit login

Java has try-with-resources and Python has context managers, I wouldn't consider either of them harder to use correctly than defer.



I'm not talking about defer at all. The contrast would be C++'s RAII.




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

Search: