Precedence done right