【问题标题】:How to output a comment using display如何使用显示输出评论
【发布时间】:2018-10-23 08:27:29
【问题描述】:

我正在使用方案将一些 s 表达式输出到端口,我真的很喜欢 将 cmets 添加到我正在编写的流中。

因为; 角色会在我不确定实际如何评论后评论所有内容 这样做,注释不是 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")
  • 我猜你现在能感觉到我的困惑,这很简单,但我想太多了

标签: scheme guile


【解决方案1】:

您可以使用字符串引号转义;

(display ";some comment") 有效。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-12-07
    • 2015-07-13
    • 2020-08-29
    • 1970-01-01
    • 1970-01-01
    • 2011-10-02
    • 1970-01-01
    相关资源
    最近更新 更多