Skip to content

Instantly share code, notes, and snippets.

@garlic0x1
Created February 18, 2024 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garlic0x1/e13c6dc5a95a3bbf3a2cbf40f0f6be09 to your computer and use it in GitHub Desktop.
Save garlic0x1/e13c6dc5a95a3bbf3a2cbf40f0f6be09 to your computer and use it in GitHub Desktop.
Common Lisp case-sensitive keywords
(set-macro-character
#\$
(lambda (stream char)
(declare (ignore char))
(let ((*readtable* (copy-readtable nil)))
(setf (readtable-case *readtable*) :preserve)
(read stream))))
$:CaseSensitiveKeyword
;; => :|CaseSensitiveKeyword|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment