From: "David A. Black" Date: 2007-03-24T00:53:33+09:00 Subject: Re: Question about if in Ruby Hi -- On 3/23/07, John Joyce wrote: > > On Mar 23, 2007, at 9:59 PM, David A. Black wrote: > > > > Just for completeness (I'm not recommending it), I'll mention that > > you can do: > > > > one_thing if begin > > another_thing > > a_third_thing > > end > > > > > > David > > Completeness is good. But that is pretty hideous stuff. > Starting to look like some cryptic C or ambitious BASIC: > logic spaghetti. I wouldn't worry too much: $ find . -name "*.rb" -exec grep "if begin" '{}' ';' | wc -l 0 :-) David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)