Those are the two obvious options and both are fine. The latter makes 
loading and use of the spec optional. If you do that, we recommend putting 
specs in the.namespace.specs for the.namespace. 

On Friday, September 14, 2018 at 12:00:30 PM UTC-5, Howard M. Lewis Ship 
wrote:
>
> I'm thinking of releasing a tiny library (really, just one macro), and I 
> want to document/validate using spec.
>
> What's the accepted approach for bundling the macro with its spec:
>
> - Just add the spec right in the namespace with the macro 
> - Have a second optional namespace that provides the spec for the macro
> - Something I haven't thought of
>
> -- 
> Howard M. Lewis Ship
>
> Senior Mobile Developer at Walmart Labs
>
> Creator of Apache Tapestry
>
> (971) 678-5210
> http://howardlewisship.com
> @hlship
>

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