16 May 02:02
Re: Matz: can we have rescue/else/ensure available in all blocks?
From: coderrr <coderrr.contact <at> gmail.com>
Subject: Re: Matz: can we have rescue/else/ensure available in all blocks?
Newsgroups: gmane.comp.lang.ruby.general
Date: 2008-05-16 00:02:47 GMT
Subject: Re: Matz: can we have rescue/else/ensure available in all blocks?
Newsgroups: gmane.comp.lang.ruby.general
Date: 2008-05-16 00:02:47 GMT
Hey Matz, Thanks a lot for the quick reply. I agree it is possible that someone who doesn't know the syntax could potentially misinterpret these things. I think though, that this should be weighed against the benefit of adding it to the language. I assume it's your judgment that the cost outweighs the benefit on this? I of course think the opposite :) I wonder what other developers think about how easily confused these would be, and about how that weighs against the benefits? The benefits are more concise syntax (which is the thing I love most about ruby), removing 2 lines and an indentation for a lot of rescue statements Also, I would be happy if only the ability to rescue were added to all blocks but begin/end were required for else/ensure since they are less commonly used. - steve http://coderrr.wordpress.com
RSS Feed