Hi -- On Wed, 29 Aug 2007, Logan Capaldo wrote: > On 8/28/07, Douglas F Shearer <dougal.s / gmail.com> 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 :) I have to say, when I type this: a = b if b I don't have the feeling that I'm repeating myself; the two b's both pull their weight. So I wouldn't worry about it, from the DRY perspective. David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)