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

Fair enough.. I actually use ternary sometimes, especially in brief return statements, and especially when both results are simple values. I only really avoid it when the result expressions are multiline. I just felt like pointing out the obvious when I saw GP's comment.


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

Search: