Fork me on GitHub
#clojure-spec
<
2019-10-15
>
mpenet11:10:29

is there a way to express negation of other specs in a regex spec other than something like (s/+ #(not (some (fn [spec] (s/valid? spec %) [::foo ::bar])))

mpenet11:10:55

I am sure I am missing the obvious

Alex Miller (Clojure team)12:10:43

Negation is fairly unusual in specs

mpenet12:10:33

yeah it doesn't even work for my use case actually, I am better of with a simple predicate

misha14:10:24

@mpenet is that pseudocode or actual code?

mpenet14:10:52

I went with something else btw. I was specing a form similar to try/catch/finally

mpenet14:10:10

getting the body accurately was the target