From: lasitha Date: 2009-03-02T15:33:56+09:00 Subject: Re: Error when running script On Mon, Mar 2, 2009 at 8:53 AM, Phlip wrote: > Brad Winborg wrote: >> >> d.each do |fl| >>   unless fl == '.' or fl == '..' then > > Only use unless in a pinch. This is better style: >    if fl != '.' and fl != '..' I usually agree with anything Phlip says, but not on this :) I love that ruby has the unless keyword and use it often. IMO the version with unless above reads just fine and you should go with whichever reads better for you. No need to open up a conversation about unless vs. if !, particularly since it's happened before [1]. Just wanted Brad to hear an alternative opinion. Solidarity, lasitha [1] e.g. http://markmail.org/thread/4ywej4tsqhe47b3a