Hieu Nguyen

Operators precendence in Ruby

May 2 2018


Previously, I thought that && and || have the same precendence in Ruby; however, today I know that && has higher precendence than ||, so && is always evaludated before ||. I look more into the precedence reference and find some interesting notes: