Hey all, As currently implemented:
(defn foo [& {:keys [x y z] :or {x "x-default" y "y-default"} *:as* args}] args) (foo) => *nil* Is there a way anyone can think of (macro, etc.) that'd allow for something like this: (defn foo [& {:keys [x y z] :or {x "x-default" y "y-default"} *:merge-as* args}] args) (foo) =>* {:x "x-default" :y "y-default**}* I.e. to merge the :or defaults over the :args binding? Rationale: one of the nice things of setting defaults via :or is that they're visible to callers via :arglists. This'd help make the process more convenient in the (relatively common) case where you'd like to preserve arbitrary args, but apply some defaults in a transparent way. Thanks! - Peter Taoussanis -- 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