From: Phlip Date: 2007-08-02T23:35:39+09:00 Subject: Re: sytnax Shai Rosenfeld wrote: > > var = { 1 => 'one', 2 => 'two', 3 => 'three' }.fetch(number, 'else') > > nice! :) > > any lead to which one is faster? D'OH! (There was just a big discussion on Ruby performance, or lack thereof. Google "Performance diffrence between ifs and case", and learn A> premature optimization is the root of all evil, and B> you can profile each system with unit tests and Benchmark library.) -- Phlip http://www.oreilly.com/catalog/9780596510657/ ^ assert_xpath http://tinyurl.com/yrc77g <-- assert_latest Model