D
Daniel Nugent
Hey guys,
I was working on a DSL for some asynchronous programming stuff and I
realized it'd be really nice if a block could rescue an exception.
So I went into IRB to see if it works and got a parse error. I
suppose you need a begin... end block or a proper method to have a
rescue block right now.
I was wondering if there's any reason why this is so? It'd seem
pretty natural to me that a block could have rescue/else/ensure
conditions since a method body can have them.
Has this been discussed elsewhere?
Thanks,
I was working on a DSL for some asynchronous programming stuff and I
realized it'd be really nice if a block could rescue an exception.
So I went into IRB to see if it works and got a parse error. I
suppose you need a begin... end block or a proper method to have a
rescue block right now.
I was wondering if there's any reason why this is so? It'd seem
pretty natural to me that a block could have rescue/else/ensure
conditions since a method body can have them.
Has this been discussed elsewhere?
Thanks,