On Sat, Sep 11, 2010 at 6:48 PM, blais <martin.bl...@gmail.com> wrote:
> 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.)

I've had this on my todo list for swank-clojure for a while now; would
love to see a patch that integrates it. Not sure it belongs in
clojure.core though.

-Phil

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