From: Michael Neumann Date: 2008-05-16T19:10:59+09:00 Subject: Re: Matz: can we have rescue/else/ensure available in all blocks? coderrr wrote: >> If you write code that looks like that, maybe you should give Java a >> second look ;) >> >> Seriously though, you could easily restructure your code to be a bit >> more OO and then you wouldn't have to worry about rescuing exceptions >> all over the place, including several times in nested loops. >> > > It was a contrived example. So would that be a "not in favor of" from you > Peter? How would you have "rescue" and "ensure" blocks when using "{" and "}", both of which are (almost) equivalent to "do" and "end"? pages.each {|page| ... } Regards, Michael