From: matz@... (Yukihiro Matsumoto) Date: 2000-03-25T22:59:26+09:00 Subject: [ruby-talk:02155] Re: begin/else Hi, In message "[ruby-talk:02149] begin/else" on 00/03/24, Dave Thomas writes: |Is there any difference at all between | | begin | codeA | rescue | ... | else | codeB | end | |and | | begin | codeA | codeB | rescue | ... | end | |(assuming codeB doesn't throw an exception?) No technical difference on that assumption. Psychologically, It emphasizes more explicitly the fact that codeB would be executed after codeA's success. In message "[ruby-talk:02151] Re: begin/else" on 00/03/24, "Dat Nguyen" writes: |In the second case, codeB will be executed anyway no matter if codeA throws |an exception or not. No, that effect is done by 'ensure' keyword. matz.