Hi everyone, I have ran into an issue with spec, and suspect it is a bug.
The following code throws an error: (clojure.spec.alpha/conformer :foo) The error is a java.lang.Exception and says: Unable to resalve spec; :foo This is unexpected because I intend to use the keyword as a conformer function. An example use-case I would do this is the following (spec/def ::foobar (spec/and (spec/cat :foo int? :bar string?) (spec/conformer :foo))) To show that this is a valid expectation, as a workaround I can wrap the :foo keyword into a lambda, in which case it works: (spec/conformer #(:foo %)) I see that the conformer macro tries to call `res` on the conformer function, which is causing the exception, and I am not sure why needed. I am using Clojure version 1.10.0 -- 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.