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

There is a couple of ways to do it. From storing your conditions in meaningful variables outside the conditional to pattern matching and more. If conditions aren't the only branching operators.


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

Search: