Did you read my whole question? It doesn't work to have the implementation 
namespace require the spec namespace either, as I demonstrated in my second 
example, where the spec for the factor function uses the prime? predicate.

On Friday, July 1, 2016 at 1:38:23 AM UTC-4, Sean Corfield wrote:
>
> I can’t help but think you’re making it way more complicated than it needs 
> to be.
>
>  
>
> Define ::config in example.spec, and in example.core use 
> :example.spec/config (and, yes, require the example.spec namespace).
>
>  
>
> You need to avoid circular namespace dependencies.
>
>  
>
> Sean Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org
>
>  
>
> *From: *Sam Estep <javascript:>
> *Sent: *Thursday, June 30, 2016 9:36 PM
> *To: *Clojure <javascript:>
> *Subject: *Re: [ANN] clojure-future-spec, a backport of clojure.spec for 
> 1.8
>
>  
>
> I spent quite a while trying to figure out how I can use some features of 
> spec, like destructuring, to work properly when my specs are in a separate 
> namespace. I asked a question 
> <http://stackoverflow.com/q/38024650/5044950> about this on Stack 
> Overflow; do you have any advice on how to solve the issues I detailed 
> there?
>
> On Wednesday, June 29, 2016 at 1:21:02 PM UTC-4, Sean Corfield wrote:
>
> On 6/29/16, 10:03 AM, "Lucas Bradstreet" <clo...@googlegroups.com on 
> behalf of lucasbr...@gmail.com> wrote: 
> > Sean, a lot of library developers still want to support Clojure 1.8, 
> > but this would prevent using spec with their projects. 
>
> clojure.java.jdbc solves that by having the specs in a separate namespace 
> (and by the tests conditionally loading that and clojure.spec.test). 
> clojure.java.jdbc supports back to Clojure 1.4. 
>
> Nikita, it would be interesting to know how far back (in Clojure versions) 
> your library could support. I can see real value in being able to back port 
> spec beyond 1.8… 
>
> Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN 
> An Architect's View -- http://corfield.org/ 
>
> "If you're not annoying somebody, you're not really alive." 
> -- Margaret Atwood 
>
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com <javascript:>
> Note that posts from new members are moderated - please be patient with 
> your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com <javascript:>
> 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+u...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>  
>

-- 
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