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

Yep, personally I think that's ok too.

It's mainly avoiding the "if not else" pattern in 1 condition. I haven't met anyone who fully agrees that it's easier to read than "if happy else unhappy" or returning early with whatever condition makes sense for the function.



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

Search: