Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Laurent PETIT
Hello, Le mardi 23 septembre 2014, Stuart Sierra the.stuart.sie...@gmail.com a écrit : I'm not sure I understand what you mean. `remove-ns` does not remove the namespace from the set of loaded namespaces kept by `require`. tools.namespace https://github.com/clojure/tools.namespace has a

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Hugo Duncan
laurent.pe...@gmail.com writes: Le mardi 23 septembre 2014, Stuart Sierra the.stuart.sie...@gmail.com a écrit : I'm not sure I understand what you mean. `remove-ns` does not remove the namespace from the set of loaded namespaces kept by `require`. tools.namespace

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Laurent PETIT
2014-09-23 12:53 GMT+02:00 Hugo Duncan duncan.h...@gmail.com: laurent.pe...@gmail.com writes: Le mardi 23 septembre 2014, Stuart Sierra the.stuart.sie...@gmail.com a écrit : I'm not sure I understand what you mean. `remove-ns` does not remove the namespace from the set of loaded

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Hugo Duncan
laurent.pe...@gmail.com writes: Just a question so my understanding levels up: are there usecases where one would use the current behavior of removing a namespace not also removing it from *loaded-libs* (and thus preventing it from being required without :reload) ? You can create namespaces

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Laurent PETIT
Le mardi 23 septembre 2014, Hugo Duncan duncan.h...@gmail.com a écrit : laurent.pe...@gmail.com javascript:; writes: Just a question so my understanding levels up: are there usecases where one would use the current behavior of removing a namespace not also removing it from

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-22 Thread Laurent PETIT
I think it is broken, and I think I know who the culprit may be (me). Before 1.5.1 (I guess), it was impossible to do things like that from e.g. a live repl session: (ns a) (ns b (:require a)) because somehow the filesystem for ns a would be checked, no file found. So a check was

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-22 Thread Stuart Sierra
I'm not sure I understand what you mean. `remove-ns` does not remove the namespace from the set of loaded namespaces kept by `require`. tools.namespace https://github.com/clojure/tools.namespace has a hack