From: Robert Klemme Date: 2010-09-01T19:47:15+09:00 Subject: Re: Namespaces too looooooong On Wed, Sep 1, 2010 at 12:29 PM, Philipp Kempgen wrote: > Robert Klemme schrieb (am 1.9.10 11:54): >> On Wed, Sep 1, 2010 at 11:39 AM, Philipp Kempgen wrote: >>> Robert Klemme wrote: >>> Whatever. Maybe namespace aliasing could be a nice addition to >>> Ruby but for the time being the unnecessary autoload wins. >> >> Well, if you alias a namespace that you never use then you have >> created dead code already. > > Nope. The condition (false) in the examples above is rather > simplistic for the sake of clarity. But you can easily have a > conditional branch that is not dead code. > > if (today == 'monday' || entropy > 60) >        Sh::exec( 'run some cleanup tasks' ) > end Or course you're right. My bad. Cheers robert PS: Benchmark looks good. Btw, you don't need the space filling if you invoke bm with an integer (label width). -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/