From: Logan Capaldo Date: 2007-08-29T08:53:19+09:00 Subject: Re: idiomatic way to assign if not nil? On 8/28/07, Douglas F Shearer wrote: > Hi Jay > > On 29 Aug 2007, at 00:30, Jay Levitt wrote: > > > a = b if b > > > > Does that exist in a DRYer form? > > Best I could come up with just now was: > > a = b || a a = b if b Not really DRYer :), you just repeat a instead of b :)