Skip to content

Instantly share code, notes, and snippets.

@cmoore
Created December 23, 2012 20:36
Show Gist options
  • Save cmoore/4365895 to your computer and use it in GitHub Desktop.
Save cmoore/4365895 to your computer and use it in GitHub Desktop.
(defun number-to-word (number)
(cond ((string-equal number "12") "twelve")
(t "what")))
(defun test-it ()
`(format nil "~a" ,(number-to-word "12")))
(defmacro test-it-m ()
`(format nil "~a" ,(number-to-word "12")))
...
CL-USER> (test-it)
(FORMAT NIL "~a" "twelve")
CL-USER> (test-it-m)
"twelve"
CL-USER>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment