From: Christopher Dicely Date: 2008-03-11T12:30:21+09:00 Subject: Re: newbie question On Mon, Mar 10, 2008 at 7:11 AM, 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? Then why not just "a = b if b"? > > maybe time for feature request? new operator a =|| (a = b if b) > > (variable = params[:nice_symbol] if params[:nice_symbol] doesnt look > very nice) Doesn't bother me, its a lot more clear than variable =|| params[:nice_symbol]. More operators that look similar and have similar but subtly different meanings is less immediate visual clarity.