3 ms·
Am I the only one who just completely ignores `and` and `or` in Ruby in favor of `&&` and `||`? The boolean keywords do look nicer than the operators, but given
by saghm 10y ago
Am I the only one who just completely ignores `and` and `or` in Ruby in favor of `&&` and `||`? The boolean keywords do look nicer than the operators, but given that there are some contexts where you can only use the operators, I just don't bother using the keywords at all
- lloeki 10y agoNo: > rubocop -D foo.rb Inspecting 1 file C Offenses: foo.rb:1:3: C: Style/AndOr: Use || instead of or. a or b ^^ 1 file inspected, 1 offense detected