michaeljbishop / mulligan

Elegant, Ruby-ish Restartable Exceptions for Ruby (like Lisp's "Restarts")
http://michaeljbishop.github.io/mulligan/
MIT License
8 stars 0 forks source link

Consider a built-in `:inject`recovery #9

Closed michaeljbishop closed 10 years ago

michaeljbishop commented 10 years ago

This recovery would execute the sent block in the binding of the raiser. This way, code in libraries could be easily patched with an exception handler.

michaeljbishop commented 10 years ago

After some consideration, while it's a neat idea, I think it would open up too many cans of worms.