I think the way to do it is:

(ns foo
  (:require [bar :refer :all :exclude (quux)]))


On 1 August 2013 18:19, Yoshinori Kohyama <yykohy...@gmail.com> wrote:

> Hi group.
>
> Assumed that I want to refer 'baz, 'qux and etc and don't want to refer
> 'quux of 'bar namespace within my 'foo namespace.
>
> With 'ns' macro, I can require a namespace and refer all public symbols in
> it.
>
>   (ns foo (:require [bar :refer :all]))
>
> I can refer only some specific symbols.
>
>   (ns foo (:require [bar :refer (baz qux)]))
>
> Can I refer all but specific symbols?
>
> I'm doing
>
>   (ns foo (:require bar))
>   (refer 'bar :exclude '(quux))
>
> or
>
>   (ns foo)
>   (require 'bar)
>   (refer 'bar :exclude '(quux))
>
> for now.
>
> Thanks in advance.
>
> Y. Kohyama
>
>  --
> --
> 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/groups/opt_out.
>
>
>

-- 
-- 
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/groups/opt_out.


Reply via email to