From: Jim Freeze Date: 2002-09-12T12:38:44+09:00 Subject: Re: if and unless On Thu, Sep 12, 2002 at 06:39:49AM +0900, Hal E. Fulton wrote: > > So I wrote: > > upload unless unchanged > > So someone asked, why not: > > upload if changed > > Well, since the whole point of downloading the file is > to edit it, I expect that 99% of the time the file will > be changed. > > But it's not just that. Writing it this way (to me) > *emphasizes* that point. > Hmm. I would have chosen the latter for this case. It seems more natural. I find my self using unless when I want to avoid an explicit ! or not in the boolean test. I like the your reasoning of using the 99% rule, but I think if I were to try to follow it, I would soon slip into using what made more since for the particular case that what the rule said. -- Jim Freeze ---------- Programming Ruby def initialize; fun; end A language with class