return false unless a.bytesize == b.bytesize
if a.bytesize != b.bytesize return false
First as the conditional only has one statment it's preferred to write it in its shorthand way, so instead of
return false if a.bytesize != b.bytesize
First as the conditional only has one statment it's preferred to write it in its shorthand way, so instead of
We start by writing And then unless is the negated conditional, so we rewrite it as Which some peolpe (myself included) consider easier to read, the 'unless' is easier to note (more chars) than the '!='.