Created
August 19, 2013 13:34
-
-
Save steveshogren/6269163 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
;;before compilation | |
(defmacro ifWorkday [bigCalc1, bigCalc2] | |
`(if (workday (today)) | |
~bigCalc1 | |
~bigCalc2)) | |
;; the call | |
(ifWorkday (+ 1 1) (otherBigCalc)) | |
;;... after compilation... | |
(defmacro ifWorkday [(+ 1 1), (otherBigCalc)] | |
`(if (workday (today)) | |
(+ 1 1) | |
(otherBigCalc))) | |
;; after compilation the call gets _transformed_ into: | |
(if (workday (today)) (+ 1 1) (otherBigCalc)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment