One way to avoid these warnings being generated in the first place is not
to "use" core.async, but "require ... as" it, e.g.:

(ns message-bus.latam
  (:require [core.async :as a]))

The down side is that then you must prefix all uses of symbols in
core.async with the alias "a/".

You can also :exclude the symbols that give the warnings.  Then you do not
need a prefix for most symbols in core.async, except for the ones that you
excluded, which will need a prefix.

There is a ticket requesting a change in the current Clojure behavior, but
it has not been commented upon by anyone, so there is no evidence whether
it will ever become part of Clojure:

    http://dev.clojure.org/jira/browse/CLJ-1257

Andy


On Sun, Oct 6, 2013 at 7:15 PM, Gary Zhao <garyz...@gmail.com> wrote:

> Hello
>
> I'm using core.async, but always see the following warnings. How do I
> suppress them?
>
> WARNING: map already refers to: #'clojure.core/map in namespace:
> message-bus.latam, being replaced by: #'clojure.core.async/map
> WARNING: into already refers to: #'clojure.core/into in namespace:
> message-bus.latam, being replaced by: #'clojure.core.async/into
> WARNING: reduce already refers to: #'clojure.core/reduce in namespace:
> message-bus.latam, being replaced by: #'clojure.core.async/reduce
> WARNING: merge already refers to: #'clojure.core/merge in namespace:
> message-bus.latam, being replaced by: #'clojure.core.async/merge
>
> Thanks
> Gary
>
> --
> --
> 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