From: "RadosÅ‚aw BuÅ‚at" Date: 2008-03-11T00:04:53+09:00 Subject: Re: newbie question On Mon, Mar 10, 2008 at 3:11 PM, Frantisek Psotka wrote: > yes, i can write > > a = b || a > > but isn't it more complex. imagine that b is nil. then a = a will be > evaluated? > > maybe time for feature request? new operator a =|| (a = b if b) > > (variable = params[:nice_symbol] if params[:nice_symbol] doesnt look > very nice) And after x years later we would have another Perl. I don't like to have gazillions operators for all occasions. a = b if b is that hard to write and read? I don't think so :). Direction for Ruby future should be to clean those ugly perlism from Ruby (for example magic variable $_), rather that to add new stuff like that. -- Rados³aw Bu³at http://radarek.jogger.pl - mój blog