Turns out I was wrong about the minimal use case. This particular problem was just an fdef that was missing a :ret spec.
That seems like a bug in s/explain, but I think it's a tossup whether the bug's in the docstring or the implementation. And I'm not entirely convinced that it's a bug at all. But it's strange enough to seem worth mentioning/explaining. Thanks again, James On Sun, Nov 13, 2016 at 9:57 AM, James Gatannah <[email protected]> wrote: > One of my system boundary data structures is particularly ugly. It involves > things like JNI classes wrapping native socket libraries, go loops, and > higher-order functions that I can use to plug in message dispatchers. > > I'm in the process of translating it from schema to spec. So far, the > process has been very educational. > > I've reached a point where calling (s/valid? ::foo x) returns false, but > (s/explain ::foo x) returns nil. > > Is this a bug in spec? Or am I misinterpreting the docstrings? > > (Narrowing it down enough to identify/fix my actual problem is one thing. > Getting something that's easily/obviously reproducible is going to be more > difficult, just because the problem spans at least 3-4 different github > repos). > > Thanks, > James > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "Clojure" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojure/1gOBPLk5wpg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
