Created
December 23, 2012 20:36
-
-
Save cmoore/4365895 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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