i think the spec docs could be improved; my question is whether suggestions should go into jira. one can always write a blog post, and one does not want to pollute jira. case in point: validating maps, in particular taking some action if a map contains an unrecognized key. it might be fine to do nothing, but in many cases you want to at least emit a warning. minimum case: user just misspells an optional key, and then wonders why it doesn't work.
there are various ways to do this, i expect. i just discovered that you can use s/and with s/keys plus a (fn [x] .. ) predicate - but if you do not include the s/keys bit, the checker will not recur. seems to me that this kind of thing merits at least a mention in the official docs. -gregg -- 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.