user=> (ns utils) utils=> (ns-unmap 'utils 'cond) utils=> (defmacro cond [& body] `(clojure.core/cond ~@(apply concat body)))
#'utils/cond utils=> (macroexpand-1 '(cond (false "false") (true "true"))) (clojure.core/cond false "false" true "true") utils=> (cond (false "false") (true "true")) "true" On Tue, Jun 22, 2010 at 6:11 PM, cageface <milese...@gmail.com> wrote: > I think I'm going to take this route. The style seems pretty common in > clojure contrib and it's readable, if a bit odd at first. > > On Jun 22, 2:20 pm, David Powell <djpow...@djpowell.net> wrote: > > I tend to write the condition and action on separate lines, and put a > > blank comment in between each, like this: > > -- > 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<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- 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