Last active
July 26, 2016 22:31
-
-
Save codemac/53201db0ac36b585e81745be8553504b to your computer and use it in GitHub Desktop.
Some scheme
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
(define-syntax define-maker | |
(lambda (stx) | |
(syntax-case stx () | |
((_ name) | |
#`(define | |
#,(datum->syntax | |
#'name | |
(string->symbol | |
(string-append | |
"make-" | |
(symbol->string | |
(syntax->datum #'name))))) | |
(lambda () (display "hello!"))))))) | |
(define-maker bob) | |
(make-bob) |
Author
codemac
commented
Jul 26, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment