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

"With" is even better in Python. Exceptions during closing work right. The big problem with RAII is that if anything goes wrong in a destructor, you're in trouble.


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

Search: