From: "David A. Black" Date: 2005-08-19T01:40:08+09:00 Subject: Re: unless statement... why oh why? Hi -- On Fri, 19 Aug 2005, Brock Weaver wrote: > Sorry, to be a little more clear, the following 3 lines are all > equivalent (notice the parens in line 2): > > if not thr or not thr.alive? > unless (thr or thr.alive?) > unless thr and thr.alive? > > It's easiest for me to think of "unless" == "if not". What's funny is > that "if not" is no longer than "unless", so the "unless" keyword > doesn't buy us much. I don't think its goal is to be shorter (apparently :-) but rather to sound good. David -- David A. Black dblack@wobblini.net