From: coderrr Date: 2008-05-17T08:31:52+09:00 Subject: Re: Matz: can we have rescue/else/ensure available in all blocks? ------=_Part_1119_30278423.1210980707362 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > How would you have "rescue" and "ensure" blocks when using "{" and "}", > both of which are (almost) equivalent to "do" and "end"? > > pages.each {|page| > ... > } > > pages.each { |page| rescue SomeError ... ensure ... } Or you could just not allow it for { }, only for do/end. I agree it looks weird, and is probably more confusing when using it with { }. - steve http://coderrr.wordpress.com ------=_Part_1119_30278423.1210980707362--