有时,我想在REPL中尝试一个库。例如,当我需要知道100天后的日期时,我会:
lein try clj-time
(require '[clj-time.core :as t])
(t/plus (t/today) (t/days 100))或者用靴子:
boot -d clj-time repl -e "(require '[clj-time.core :as t])"
(t/plus (t/today) (t/days 100))这已经很棒了,但这仍然有几秒钟的启动时间。
我的问题是:我是否可以使用ClojureScript和Node获得相同的功能,并可能有更快的启动时间?如何使用cljs时间获得上面的示例
发布于 2016-07-28 12:53:51
您可以将Planck与您想要尝试的jar一起使用,方法是将它添加到Planck的“类路径”中(这不是一个实际的类路径,因为不涉及JVM )。见Planck依赖文件。
例如:
planck -c ~/.m2/repository/com/andrewmcveigh/cljs-time/0.4.0/cljs-time-0.4.0.jarhttps://stackoverflow.com/questions/38636492
复制相似问题