5 ms·
I've always found it odd that and/or in Ruby isn't just considered equal to &&/||, and I have never really used the english operators except for the usual modif
by ClikeX 3mo ago
I've always found it odd that and/or in Ruby isn't just considered equal to &&/||, and I have never really used the english operators except for the usual modifiers like if and unless.
What is a practical use case where the lower precedence makes sense?
- aeonflux 3mo agoThose two behave in the same way if you drop the parentheses: 1. statement if (condition || something) 2. (statement if condition) or something