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

> like forgetting to clean up resources on the (invisible) exceptional execution path

Except this is still possible on the non-exceptional execution path. You simply just need to forget the defer call. The only thing that solves this is RAII and destructors.




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

Search: