On May 18, 2006, at 5:29 PM, Hal Fulton wrote:
> 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.

I misremembered what AST would be built.  The setup only occurs when  
there is a rescue clause.

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com