(defrecord Foo [])
(s/valid? (s/coll-of any?) (Foo.))
boom - Can't create empty: user.Foo
seems like a bug
it is, we have a ticket for it
you can avoid it using :into coll?
ok
it's one of those things that seems obvious but is way more subtle than it seems in the impl.
related too https://clojure.atlassian.net/browse/CLJ-1975
yeah, it's a dupe of that
would setting a default for :into at coll-of level to coll? be bad (I mean in the impl itself)?
I get the fact that every-impl is shared quite a bit so that can't be baked in at this level
like here https://github.com/clojure/spec.alpha/blob/master/src/main/clojure/clojure/spec/alpha.clj#L592 , I guess because "performance"
very hard to say without a lot of thinking
and I rewrote half of that stuff in spec 2