Fork me on GitHub
#clojure-spec
<
2019-04-30
>
ikitommi08:04:03

Bending spec1 to support things that we need for validating configuration, and that hopefully are available with spec2 itself: closing (data-)specs recursively. No macros, just data.

ikitommi08:04:20

uses spell-spec and expound for most of the work.

vemv10:04:39

(spec/def a int?)
(spec/valid? `a 2) ;; -> true
Sometimes I make this typo (`a` vs. ::a) but it happens to work Is it intentional?

Alex Miller (Clojure team)11:04:38

It’s a side effect of the impl

Alex Miller (Clojure team)11:04:15

Symbols are used as valid names for function specs (s/fdef)

vemv12:04:18

got it, thanks!