Hacker News new | ask | show | jobs
by InAnEmergency 4852 days ago
I think I may be the last person who still thinks "and/or" are just fine for boolean expressions in Ruby.

It is true that "and/or" are not equivalent to "&&/||". But I don't find any of the arguments that we should then avoid "and/or" in favor of "&&/||" convincing.

1 comments

Yup. They're like any other tool. If you're not sure how to use and/or, then don't use them. Or, better yet, study up. Programming can benefit from nuance.