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

Hm? How come? `or` is short-circuiting in the sense that when we have `a() or b()`, b() is only called if a() returns something falsy. Where would the issue arise?

Sure, abusing or in this way might seem hackish, but I feel like it's a net win for readability.



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

Search: