Welcome! Please see the About page for a little more info on how this works.

0 votes
in tools.namespace by

Hello! I've recently copied some logic out of clojure.tools.namespace.repl that determines the next set of namespaces that need refreshing: https://github.com/clojure/tools.namespace/blob/master/src/main/clojure/clojure/tools/namespace/repl.clj#L91 This information is highly useful to external consumers who may need to manage some stateful resources prior to refreshing, depending on their state management solution.

I opened a PR here, which was closed because I apparently can't read contribution guidelines: https://github.com/clojure/tools.namespace/pull/13 This just pulls out functions that are invoked via alter-var-root to a standalone function. (vemv also helpfully pointed out that I forgot to propagate an argument).

Would this be a reasonable, small change to make to c.t.n.repl?

Thank you :)

1 Answer

0 votes
ago by