我想检索由生成的字符串以write
进行进一步处理而不进行任何实际输出,但write
似乎总是也输出到 REPL
CL-USER>(let ((err-string (write (make-instance 'error) :stream nil)))
(do-awesome-stuff-with-string err-string))
<ERROR> ;;this is the printing I want to get rid of
"awesome-result"
为什么write
仍然输出到 REPL,我该如何摆脱它?