我正在使用scheme将一些s表达式输出到端口,我真的很想 向我正在编写的流添加评论。
因为;
角色会在我不确定如何实际评论所有内容后评论所有内容 这样做,注释不是 S 表达式,因此引用不起作用
(display ;some comment) ; obviously not working
(display ';some comment) ; does not make sense
(display '(;some comment)) ; could make sense, does not work
您可以使用字符串引号转义;
。
(display ";some comment")
有效。