2
任何人都可以解释,下面的例子有什么问题吗? 它为什么会抛出StackOverflowError异常?clojure.spec符合抛出堆栈溢出异常
(s/def ::tag keyword?)
(s/def ::s string?)
(s/def ::n number?)
(s/def ::g
(s/cat :tag (s/? ::tag)
:ex (s/alt :string ::s
:number ::n
:and (s/+ ::g)
)))
(s/conform ::g '["abc"])