From: Jamie Macey Date: 2006-04-12T03:13:57+09:00 Subject: Re: Style question: if !x vs. unless x On 4/11/06, David Brady wrote: > # this version > if !correct > handle_error > do_some_other_thing > end > > # or this version > unless correct > handle_error > do_some_other_thing > end Another version that works, but is a little confusing to read for anything larger than a handful of lines: begin handle_error do_some_other_thing end unless correct This is essentially just creating an anonymous scope (the begin/end) and appending the postcondition to that.