This will help with collisions, but note that other namespaces may
still hold references to the values of the un-mapped Vars.
-S


On Sep 11, 9:48 pm, blais <martin.bl...@gmail.com> wrote:
> Hi,
> The following function has been a real _lifesaver_ lately in debugging
> symbol collisions in (ns) directives when developing with SLIME in a
> long-running VM:
>
> (defn ns-unmap-all
>   "Unmap all the symbols (except 'ns' and 'in-ns')."
>   ([] (ns-unmap-all *ns*))
>   ([ns] (map #(ns-unmap ns %) (keys (ns-map ns)))))
>
> May I kindly suggest the inclusion of something similar along with all
> the other core namespace functions?
> It's quite nice (IMHO: necessary) to be able to get back to a clean
> environment when you face a collision error.
> (I'm guessing may of you have something similar already defined in
> your environments.)
>
> cheers,

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