欢迎!有关如何操作的更多信息,请参阅 关于 页面。
我认为添加一个将标准输出重定向到 *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))