MichaelDrogalis / dire

Erlang-style supervisor error handling for Clojure
483 stars 20 forks source link

with-eager-prehook #7

Closed MichaelDrogalis closed 11 years ago

MichaelDrogalis commented 11 years ago

Dire prehooks are evaluated only if all preconditions evaluate to true. The rationale behind this is that prehooks can assume the world is in a valid state when they execute. Logging, however, should probably execute regardless of precondition results, and therefore should execute before precondition evaluation. The ideal solution is an eager-prehook function.

MichaelDrogalis commented 11 years ago

Fixed in 0.4.2.