1) Write itry-fn which takes a function and the source of the function. Example usage: (itry-fn (fn [] (/ 5 0)) '(/ 5 0)) 2) Next write your itry macro to use the function: (defmacro itry [expr] `(itry-fn (fn [] ~expr) '~expr))
A general rule of thumb for macros is that they should provide sugar for underlying functions. -- 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