Archive for 'and' Category
Ruby operator precedence of ‘&&’ and ‘and’
6 March 2009Wow that a heck of a post title isn’t it… well the up shoot of this post is to point out the non-intuitive (to me anyway) difference in the precedence of the two AND operators in ruby. The operator ‘&&’ has a much higher precedence than ‘and’, more importantly ‘and’ has a lower precedence than […]