Created
November 17, 2015 20:03
-
-
Save xieyuheng/265b246a13a04d4487e1 to your computer and use it in GitHub Desktop.
This file contains 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
(define-syntax cat | |
(syntax-rules () | |
[(cat (str . args)) | |
(format str . args)] | |
[(cat (str . args) (str2 . args2) ...) | |
(string-append | |
(cat (str . args)) | |
(cat (str2 . args2) ...))])) | |
(define-syntax orz | |
(syntax-rules () | |
[(orz . body) | |
(error (cat . body))])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment