3 ms·
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 "&&/||
by InAnEmergency 14y 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.
- sabat 14y agoYup. 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.