From: Stefan Rusterholz Date: 2007-07-20T06:37:58+09:00 Subject: Re: RCR? Added syntax for chains that possibly return nil gabriele renzi wrote: > On Thu, 19 Jul 2007 22:31:01 +0900, Stefan Rusterholz wrote: > > >> Do you think this RCR is worth to make? > > Sorry, I may have missed this in the previous thread, but why an inline > rescue clause is not enough? > while line = gets.chomp rescue nil > foo = bar.baz.quuz rescue default > end Simple: what if your exception is not the NoMethodError you are worried about? You'll never know. Or less dramatic: a bug may stay in your app unnoticed for longer than necessary. Regards Stefan -- Posted via http://www.ruby-forum.com/.