EDIT: is what I want basically load-string?
Question
在衣着,如果我这样做的话:
(require :reload foo.bar)
然后,Clojure处理rc/foo/bar.clj,并重载。
我现在想做这样的事情:
(reload-from-string foo.bar STR)
the semantics of this would be: reload namespace foo.bar, but instead of compiling src/foo/bar.clj, compile STR instead.
我如何界定从重载后重载?
Context
I need to hot reload code on a server that is running an Clojure application. I don t want to have to continuously shuffle files back & forth to the server (either via scp, sftp, or fuse/sshfs) in order to reload. Thus, I would prefer to just pass it a string.
感谢!