在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