在Common Lisp代码中插入long multistrings vars或常量的习惯用法是什么? 在unix shell或其他语言中是否存在类似HEREDOC的字符串文字内部的空格符?在Lisp代码中使用long multistring常量(或变量)的习惯用法
例如:
(defconstant +help-message+
"Blah blah blah blah blah
blah blah blah blah blah
some more more text here")
; ^^^^^^^^^^^ this spaces will appear - not good
和写作这种方式有点难看:
(defconstant +help-message+
"Blah blah blah blah blah
blah blah blah blah blah
some more more text here")
我们应该怎么写呢。如果有什么办法,当你不需要逃避报价时,它会更好。
谢谢,这看起来像合理的事情。 – coredump 2014-10-09 14:47:17
@coredump在常量字符串的情况下,您可以使用#。 (如[Rainer的回答](http://stackoverflow.com/a/26278029/1281433))。 – 2014-10-09 15:04:25