From: 7stud -- Date: 2009-04-29T11:05:47+09:00 Subject: Re: Can this code be more succinct RichardOnRails wrote: > Hi All, > > I like to use the following form for handling error situations: > > ( puts "ERROR: Long msg"; > exit) if some_boolean _expression > > I want the multiple form because the error messages are often long and > sometimes multi-line. > > Is there any way to improve it by getting rid of the parentheses? > > Thanks in advance, > Richard Why use such a tortured construct in the first place? This is much clearer: if condition puts <<-ENDOFSTRING warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error warning error ENDOFSTRING exit end -- Posted via http://www.ruby-forum.com/.