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

Yes, that is useful. That's why Python has with statements, for example. C++ RAII or Java try-with-resources can be used similarly.

http://www.python.org/dev/peps/pep-0343/




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

Search: