Old thread, but still works great, thanks!
Den onsdag den 28. april 2010 03.25.26 UTC+2 skrev ataggart:
Inspired from an earlier discussion, I've written a macro that allows
let-style binding values to be try'd, and still available to catch/
finally clauses. E.g.:
(try-let [from (API
Inspired from an earlier discussion, I've written a macro that allows
let-style binding values to be try'd, and still available to catch/
finally clauses. E.g.:
(try-let [from (API/open from-addr) to (API/open to-addr)]
(do-stuff from to)
(finally
(if to (doto to .flush .close