Current best practice in my view:

For Clojure 1.4+, do not use :use at all. Use :require :refer 
(judiciously). :refer :all is almost never a good idea.

For Clojure 1.3 and below, :use :only is strongly encouraged. Bare :use is 
almost never good.

Justin

On Thursday, November 8, 2012 11:57:21 AM UTC-5, David McNeil wrote:
>
> I notice the following item at 
> http://dev.clojure.org/display/design/Library+Coding+Standards 
>
>    "Be explicit and minimalist about dependencies on other packages. 
> (Prefer the :only option to use and require)."
>
> The page was last edited on Mar 29, 2011 and ns usage has been discussed a 
> fair bit since then... this leads to the question: 
>
>    Is the item quoted above still the standard for Clojure Libraries?
>
> Thanks.
> -David
>

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

Reply via email to