I was a bit puzzled by the :req-un / :opt-un stuff in maps. Am I right that there is a requirement here for the keys to be namespaced but the actual namespace is completely irrelevant / ignored?
(defn thing [m] (+ (:a m) (:b m) (or (:c m) 1))) (s/fdef thing :args (s/cat :map (s/and (s/keys :req-un [:x/a :y/b] :opt-un [:z/c]) (s/map-of keyword? number?))) :ret number?) I tried several namespace prefixes here and it seemed I can use anything and they don’t even need to be consistent. Wouldn’t it be easier to just allow un-namespaced keywords here? Or is there some aspect of the namespacing here that I’m missing? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org From: Rich Hickey -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.