Re: Recursive clojure.spec doesn't work

2016-07-20 Thread Johan Jonasson
; (s/spec (s/cat > :tag keyword? > :attrs map? > :children (s/* (s/alt :element :html/element >:string string?) > > > On Wednesday, July 20, 2016 at 10:38:41 AM UTC-5, Johan Jonasson

Recursive clojure.spec doesn't work

2016-07-20 Thread Johan Jonasson
I might have stumbled upon a bug in clojure.spec, while trying to define a spec. This doesn't compile: (s/def :html/element (s/cat :tag keyword? :attrs map? :children (s/* (s/alt :element (s/spec :html/element) :string string? The exception says: "Unable