Created
October 7, 2015 18:25
-
-
Save tuturto/715b654400d7480d4e2a to your computer and use it in GitHub Desktop.
Bots build bots
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
;; do-trigger should be ~name, but there's two levels of quasi-quotes | |
(defmacro method-with-attributes [name] | |
`(defmacro effect-trigger [attributes body] | |
`[do-trigger (fn [self dying-rules] | |
(let [~@(genexpr `[~x (. self ~x)] [x attributes])] | |
~body))])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment