I've run into some odd namespace issues with clojure.spec, and I'm sure 
it's because I'm doing something wrong. I have this in my ns declaration:

[foo.schema :as schema]

However:

foo.main> (s/valid? :foo.schema/email "f...@bar.com")
true
foo.main> (s/valid? :schema/email "f...@bar.com")
Exception Unable to resolve spec: :schema/email  clojure.spec/reg-resolve! 
(spec.clj:68)
foo.main> 

It would also be useful if I knew of a non-trival project I could view that 
uses clojure.spec across namespaces, but without being SO complex that the 
basics are obscured.

Does anyone know of or have an example?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to