Fork me on GitHub
#clojure-spec
<
2018-01-19
>
gfredericks02:01:36

(s/keys :req [::foo]) or (s/keys :req ["foo"])?

gfredericks02:01:09

if the former, is it not syntactically possible to express all string keys? if the latter, how are the strings tied to the spec registry?

pablore20:01:26

Do specs replace deftype and reify? If not, how do I use them together?

schmee20:01:09

no. deftype is used for performance and polymorphism, reify is mostly used for Java interop, and spec is about specifying your data. so it’s three different use-cases really 🙂