2009/3/24 Mark Volkmann <r.mark.volkm...@gmail.com>: > > Thanks! It looks like I don't need the let now. Does a macro have to > evaluate to one form? For example, this works, but it seems I can't > drop the do. > > (defmacro dump [expr] > `(do > (print (quote ~expr)) > (println " =" ~expr)))
How about: (defmacro dump [expr] `(println '~expr "=" ~expr)) > R. Mark Volkmann -- ! Lauri --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---