我该如何在不使用:reload的情况下重新评估clojure中的“def”?
(def x 0) x ; => 0 (def x 1) x ; => 1
你不能从另一个命名空间重新定义变量,因此在重新定义之前,应该使用in-ns切换到它所在的命名空间。
(load-file "foo/bar.clj") (load "foo/bar")