From: Joel VanderWerf Date: 2003-06-04T13:51:06+09:00 Subject: Re: Should the rescue modifier take a block? Hal E. Fulton wrote: > Would something like this make sense? > > mymeth(myargs) rescue { puts "mymeth failed"; exit } > > It's not current syntax. I'm asking whether > it would make sense to add it. Not really an answer to your question, but there is this: def boom raise end boom rescue begin puts "boom failed" exit end puts "Darn, it didn't work" It works, needless to say. Actually I've always been a bit uncomfortable with using begin/end for this and for "begin...end while ...". It seems like do...end and {...} should be doing that job, and begin...end should be just for exceptions. But I don't lose sleep over it.