On 6/20/05, Gavin Kistner <gavin / refinery.com> wrote: > On Jun 20, 2005, at 7:23 AM, ts wrote: > > -Benchmark.bmbm(10){ |x| > > +Benchmark.bmbm(10){ |xx| > > rofl > > Oops. Thanks :) > Even though it turns out there is no performance benefit to 1 == x over x == 1, I find it desirable to write the former anyway. If you accidentally write x = 1 instead of x == 1, it can take a long time to figure out your bug. But if you write 1 = x instead of 1 == x, you get a syntax error, and can immediately correct the mistake. Jason