From: Mark Volkmann Date: 2006-02-08T07:22:30+09:00 Subject: Re: reasons to use else inside rescue On 2/7/06, Christian Neukirchen wrote: > Mark Volkmann writes: > > > Even though there is some value to it, I suspect that "else" inside a > > "begin" is rarely used. By "rarely", I mean less that once per hundred > > "begin" blocks. I suspect this is because it's not a well known > > feature and ends up making the code a bit harder to understand. I > > think I'd typically tend to put the "else" code inside the "begin" > > block. Does anyone disagree with this? > > What if the "else code" raises an exception to (not) to be cought? In that case the exception would go to the method that called the method containing the else ... and on up the stack. -- R. Mark Volkmann Partner, Object Computing, Inc.