在 clojure repl 中使用时生成的类文件的位置
当我在 Repl 中输入 (use 'some.namespace)
时,就会编译并加载相应的 clojure 文件。编译后的类文件是存储在文件系统上,还是仅驻留在内存中? Repl 从命令行启动,不涉及编辑器/IDE。
When I enter (use 'some.namespace)
in the Repl, the corresponding clojure file is compiled and loaded. Are the compiled class files stored on the file system, or they only reside in the memory? The Repl is started from the command line, no editor/IDE is involved.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,当您
使用
命名空间时,不会在任何地方生成类文件。唯一生成类文件的时间是您显式 AOT 编译代码时,大多数情况下您不需要这样做。您可以在此处了解有关编译的更多信息:http://clojure.org/compilation
When you
use
a namespace, no class files are generated anywhere that I know of. The only time class files are generated are if you explicitly AOT compile your code, and most of the time, you won't need to.You can learn more about compilation here: http://clojure.org/compilation