Skip to content

Instantly share code, notes, and snippets.

@death
Created July 25, 2020 00:04
Show Gist options
  • Save death/e9f975bb9ed13f43fd7653c9429e649c to your computer and use it in GitHub Desktop.
Save death/e9f975bb9ed13f43fd7653c9429e649c to your computer and use it in GitHub Desktop.
The story of #"
It is #*100101 nowadays, but used to be #"100101" according to a
Kent M. Pitman message in cl-su-ai.
Pitman suggested the new sub-char so that he could use #" for
strings passed through FORMAT:
(defun read-sharpsign-doublequote (stream char n)
(declare (ignore n))
(unread-char char stream)
(format nil (read stream t nil t)))
Then one can use, say, #"Hello~%World" to have a string composed of
two lines, or
(defun f (x)
#"This function takes X~@
and returns it, as-is."
x)
To have the text in the docstring indented in source but appearing
unindented in DOCUMENTATION output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment