How to reload a clojure file in REPL

后端 未结 8 1210
忘了有多久
忘了有多久 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:27

    There is also an alternative like using tools.namespace, it's pretty efficient:

    user=> (use '[clojure.tools.namespace.repl :only (refresh)])
    
    user=> (refresh)
    
    :reloading (namespace.app)
    
    :ok
    

提交回复
热议问题