如何将Clojure REPL的内容转储到文件? [英] How can you dump contents of Clojure REPL to a file?

查看:190
本文介绍了如何将Clojure REPL的内容转储到文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我一直在做一个Clojure的教程,这是非常有趣的到目前为止。不幸的是,每次关闭我的REPL,我都失去了在之前创建的 defn def 会话。

So I have been working on a Clojure tutorial and it's pretty fun so far. Unfortunately, every time I close my REPL out, I lose all of the defn and def that I created in the previous session.

因此,为了节省时间,可以让Clojure REPL保存文件中输入的所有内容,需要未来的使用?

So, to save time in the future, is it possible to have the Clojure REPL save everything I've typed to a file so I can dig out what I need for future uses?

推荐答案

我认为大多数人通过使用他们的IDE工作,发送代码片段到REPL,做了很多直接黑客在REPL。这样,您就可以更好地了解程序的当前状态。

I think most people work by using their IDE to send fragments of code to the REPL, rather than doing a lot of direct hacking in the REPL. This way you have a better idea of the current state of the program.

这篇关于如何将Clojure REPL的内容转储到文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆