Fork me on GitHub
#clojure
<
2023-11-26
>
wmealing13:11:00

Is there a clojure equivalent to common lisps "(asdf:load-system :foo)" ie, i want to re-evaluate the entire package from disk into the repl.

wmealing14:11:14

is (use 'foo :reload-all) functionally equivalent, i am not sure.

practicalli-johnny14:11:09

For Clojure, I would use require to load/reload a namespace (I haven't used common lisp) :reload option may be enough or :reload-all to be sure There is also a :verbose option to show you what is being loaded (require 'fully-qualified.namespace.name :reload-all)

practicalli-johnny14:11:55

If there are changes to the var names, then it may be useful to use the (refresh) function call from clojure.tools.namespace.repl

(require '[clojure.tools.namespace.repl :refer [refresh]])

(refresh)

🎯 3
👍 1