From: Hal Fulton Date: 2004-03-05T05:01:33+09:00 Subject: Re: rescue inside block -> syntax error Kent Dahl wrote: > For starters, it would start drifting do..end blocks and {..} blocks > apart, unless you'd allow it in those too. > > {|this| > this.will > ensure > self.gag > other_who_like_curly_braces.gag > } > Personally, I wouldn't mind this. I only use {} on single lines (as many do). They already look very different. Why not let them behave as differently as they look? I do think the "generic rescue" might impose a little extra work (a lot?) on the interpreter. For example, when we see "begin" we know there's a good chance we'll be seeing a "rescue." Once this is changed: When we see "do" we're not sure whether to expect a rescue or not. Couldn't this impact code generation (interpreting in this case) as well as parsing? (Disclaimer: I know little about interpreters.) Hal