Hi Dima,

You can now put 'finally' clause in v0.2.2, just loaded onto clojars. 

I haven't done an example on the readme yet....

but the following should print a hello and return [1 2 :A]:

(manage                          ;; L2
 [1 2 (manage                    ;; L1
       (raise :A)                ;; L0
       (on :A [] :A))]           ;; H1A
 (on :B [] :B) (finally (print "hello")))

Chris.



On Thursday, September 26, 2013 1:26:37 AM UTC+10, Dima Sabanin wrote:
>
> Hi Chris!
>
> Great library! I'm trying to apply this to a project I'm working on, but 
> I'm somewhat new to the conditional restarts theory. What would I use 
> instead of Clojure's finally block to properly free up the resources on 
> error escalation?
>
> -- 
> Thanks,
> Dima Sabanin
> http://twitter.com/dimasabanin
>
>
> On Wed, Sep 25, 2013 at 3:14 AM, zcaudate <z...@caudate.me 
> <javascript:>>wrote:
>
>> I've done a pretty comprehensive guide on conditional restart systems in 
>> clojure with diagrams to show why it is much more flexible over try/catch 
>> mechanism
>>
>> Project:
>>     https://github.com/zcaudate/ribol
>>
>> Generated Documentation:
>>     http://z.caudate.me/ribol/
>>
>>
>>
>>  -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com<javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Best regards,
> Dima Sabanin
> http://twitter.com/dimasabanin 
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to