From: Hal Fulton Date: 2006-05-19T09:29:29+09:00 Subject: Re: Rescue clauses on do/end blocks? Eric Hodel wrote: > On May 18, 2006, at 7:55 AM, Daniel Schierbeck wrote: > >> I know this has been on the table before, but I really see no reason >> not to allow do/end blocks to have rescue clauses on them, i.e. >> >> foo do >> bar >> rescue >> baz >> end > > > [...] > >> I'd like some feedback, and if its generally positive, I'll post an RCR. > > > Setting up and tearing down an exception handler for every block > invocation is going to be expensive. > > I vote no. > I guess I assumed that it would only do the setup if the rescue clause actually appeared. But I don't know how the parser and such really work. Hal