From: Stephen Smith <4fires@...> Date: 2007-06-06T10:37:33+09:00 Subject: Re: FizzBuzz (#126) ------=_Part_18018_6597157.1181093842995 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Is there a short circuit AND in ruby? Just wondering... On 6/5/07, James Edward Gray II wrote: > > On Jun 5, 2007, at 9:29 AM, Rob Biedenharn wrote: > > > If I were giving this test, extra credit would be earned for > > knowing that i%15 == 0 is equivalent to (i%3==0 && i%5==0) because > > I can't imagine a programmer being very good without a firm grasp > > of some math as basic as this. > > I guess you wouldn't hire me. I used the double-test form because I > thought it was self documenting. > > James Edward Gray II > > ------=_Part_18018_6597157.1181093842995--