Last active
May 23, 2016 17:35
-
-
Save maruks/df911a946a7046bfe7c4b7884f0b78bf to your computer and use it in GitHub Desktop.
anaphoric macro
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 (aif stx) | |
(syntax-case stx () | |
[(_ expr then else) | |
(with-syntax ([it (datum->syntax stx 'it)] ) | |
#'(let ((it expr)) | |
(if it then else)))])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment