Hi,

Am 24.03.2009 um 16:00 schrieb Mark Volkmann:

Thanks! It looks like I don't need the let now.

But there are reasons to keep it! Eg. returning the expression
result!

(defmacro dump
  [expr]
  `(let [value# ~expr]
     (println (pr-str (quote ~expr)) "=" (pr-str value#))
     value#))

Then you can mix in your dump macro where you want.
Your version always returns nil.

Or you can have a look at clojure.contrib.trace.

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to