How to reload a clojure file in REPL

后端 未结 8 1213
忘了有多久
忘了有多久 2020-12-02 03:41

What is the preferred way of reloading functions defined in a Clojure file without having to restart the REPL. Right now, in order to use the updated file I have to:

8条回答
  •  情书的邮戳
    2020-12-02 04:11

    The best answer is:

    (require 'my.namespace :reload-all)
    

    This will not only reload your specified namespace, but will reload all dependency namespaces as well.

    Documentation:

    require

提交回复
热议问题