Hacker Newsnew | past | comments | ask | show | jobs | submit | bzdzb's commentslogin

I agree. The alternative as you state is nested conditionals. Yuck! An alternative construct I have seen and used is to wrap code in a do {} unless(0) block and break to a single failure return or complete the block to a single success return.


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

Search: