Clojure namespace management - Is there a way to save and restore the state of clojure repl namespaces, imports etc.?

后端 未结 3 1210
独厮守ぢ
独厮守ぢ 2021-02-04 10:38

Clojure has a large number functions/macros for working with namespaces and java package imports. To my (limited) understanding the set up of namespaces can be considered state

3条回答
  •  自闭症患者
    2021-02-04 11:09

    This won't always work. You can remove Vars from a namespace with ns-unmap, but other pieces of code may still hold references to those definitions.

    Clojure, because it is based on the JVM, has no concept of a "memory image" like some Common Lisp or Scheme implementations.

提交回复
热议问题