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
(defmacro report | |
[to-try] | |
`(if ~to-try | |
(println (quote ~to-try) "was successful:" ~to-try) | |
(println (quote ~to-try) "was not successful:" ~to-try))) | |
;; Thread/sleep takes a number of milliseconds to sleep for | |
(report (do (Thread/sleep 1000) (+ 1 1))) | |
produces that |