Re: What does the ref *loaded-libs* do?

2018-02-05 Thread Stephen Gilardi
It is there to support the “:reload” and “:reload-all” features of “require” and to help separate the concern of loading libs from the concern of tracking namespaces. --Steve > On Jan 29, 2018, at 6:36 PM, Raymond Huang <12ay.hu...@gmail.com> wrote: > > I was poking around `tools.namespace` an

What does the ref *loaded-libs* do?

2018-02-05 Thread squeegee
It is there to support the “:reload” and “:reload-all” features of “require” and to help separate the concern of loading libs from the concern of tracking namespaces. --Steve -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

What does the ref *loaded-libs* do?

2018-01-29 Thread Raymond Huang
I was poking around `tools.namespace` and I found it interesting that the implementation of `remove-lib` is: ```(defn remove-lib "Remove lib's namespace and remove lib from the set of loaded libs." [lib] (remove-ns lib) (dosync (alter @#'clojure.core/*loaded-libs* disj lib))) ``` I’m wo