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

As ugly as the ternary ?: operator is, it's an expression so that makes it nicer than if/else blocks that require variable mutation.


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

Search: