From: brabuhr@... Date: 2008-11-28T02:12:25+09:00 Subject: Re: Performance issues with large files -- ruby vs. python : On Thu, Nov 27, 2008 at 11:47 AM, Robert Dober wrote: > On Thu, Nov 27, 2008 at 4:57 PM, Charles Oliver Nutter > wrote: > >> DO NOT use unless...else. It's the most confusing conditional construct >> ever. Use if and flop the bodies, or just use if !condition. > > I have never heard you shout before, *unless* I am mistaken ;). > I always felt that unless is just the human readable way of saying if > not, but accountants do not have any taste (or something like that ;). I don't think the confusion issue was simply unless, but rather pairing unless with else. # not confusing unless a == b #foo end # confusing unless a == b #foo else #bar end # not confusing if a == b #bar else #foo end # or if a != b #foo else #bar end