2012/10/18 Mark Engelberg <mark.engelb...@gmail.com> > When I want to add print commands for debugging, I usually either do it > the way David Nolen described, i.e., binding _ to a printf statement, or I > use a little utility macro like this (picked up from stackoverflow): > > (defmacro dbg[x] `(let [x# ~x] (println "dbg:" '~x "=" x#) x#)) > > FWIW, when just wanting to print out debug values, I use a custom reader tag similar to the above macro:
(let [x #log/spy (+ a b)] (usage-of x)) Even though it's probably an abuse of the idea of reader tags, it has the advantage that its quickly added and removed, even without paredit. Of course, that doesn't solve the mixed-let-cond problem. -- 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