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

The goto cleanup pattern is a good one. It's important to know why certain constructs are frowned upon. That pattern is not one of them.

Look at the Linux kernel; it's used extensively. For example: http://lxr.free-electrons.com/source/kernel/fork.c?v=3.3#L42...



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

Search: