Y
Hacker News
new
|
ask
|
show
|
jobs
by
JonnieCache
4271 days ago
I agree that it's ugly, but also in some languages you can get into trouble because of operator precedence. This is why ruby and perl have the operators `or` and `and` as well as || and &&.
http://devblog.avdi.org/2010/08/02/using-and-and-or-in-ruby/