欢迎!有关如何操作的更多信息,请参阅关于页面。
我认为添加一个将标准输出重定向到*err*的宏会很有用。
*err*
(with-err-out [& body] `(binding [*out* *err*] ~@body))
反方观点:(with-err-out (do-stuff))与(binding [*out* *err*] (do-stuff))几乎一样短或者容易阅读。
(with-err-out (do-stuff))
(binding [*out* *err*] (do-stuff))