Conditions is some kind of low-level condition-based event-handler suitable for different kind of uses. Typical use is error handling. it’s ported from LISP’s Condition System:
gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html
THIS IS HIGHLY ALPHA! DO NOT USE IN PRODUCTION! (but syntax is most likely not going to change)
For more information, read covering blog posts on:
www.andre-gawron.de/123/the-diversity-of-error-handling
www.andre-gawron.de/187/road-to-condition
It’s currently extending the Object class. Why? Kinda easy. I don’t want to write Conditions::handle (etc).
The Object class is patched as soon as Conditions are required. I’m lookin into actually check before patching if there are other methods already in the Object class and probably not allow patching then. But that’s for the future, it’s alpha, right?
Are you sure? Ok, feel free to …
-
Fork the project: github.com/melkon/conditions
-
Make your feature addition or bug fix.
Copyright © 2011 André Gawron. See LICENSE for details.