Hi,

On Feb 25, 4:19 pm, Amitava Shee <amitava.s...@gmail.com> wrote:

> Just to solidify my understanding, can this be done in the default
> namespace (of "user")?

Yes. Instead of (ns foo.bar (:require [clojure.zip :as zip])) when
setting up the foo.bar namespace you can just use require in the user
namespace. However don't forget to quote the arguments! (Quoting the
vector below, will also quote any contained symbol!)

  (require '[clojure.zip :as zip])

Note, that approach 3 does not work in user, because it has
clojure.core already referred. So next is already aliased to
clojure.core/next. This will only work with a new namespace, or after
manually removing the alias to core/next. However I wouldn't recommend
to fiddle manually with these things.

Also note: there might be different other symbols from a clojure.zip
and core which clash. next just happens to be the first one. So with
approaches 2 or 3 you would have to extend the excludes accordingly.

Sincerely
Meikel

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