diff options
| author | hyphz <drmoose94@gmail.com> | 2017-07-18 17:56:42 +0100 | 
|---|---|---|
| committer | hyphz <drmoose94@gmail.com> | 2017-07-18 17:56:42 +0100 | 
| commit | 5ab5cb9800822d607be2c6ac943377811db98158 (patch) | |
| tree | 3c804707822744c20da1de54ff60fc8c3197781b /clojure-macros.html.markdown | |
| parent | 62102d02992f83b3a1fb745a39f36332dd4435b7 (diff) | |
| parent | 6e7c5c793327f4a63b13e555894597915ca91fda (diff) | |
Merge remote-tracking branch 'adambard/master'
Diffstat (limited to 'clojure-macros.html.markdown')
| -rw-r--r-- | clojure-macros.html.markdown | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/clojure-macros.html.markdown b/clojure-macros.html.markdown index d74f77cf..89066faf 100644 --- a/clojure-macros.html.markdown +++ b/clojure-macros.html.markdown @@ -99,13 +99,13 @@ You'll want to be familiar with Clojure. Make sure you understand everything in  (list x) ; -> (4)  ;; You can use # within ` to produce a gensym for each symbol automatically -(defmacro define-x-hygenically [] +(defmacro define-x-hygienically []    `(do       (def x# 2)       (list x#)))  (def x 4) -(define-x-hygenically) ; -> (2) +(define-x-hygienically) ; -> (2)  (list x) ; -> (4)  ;; It's typical to use helper functions with macros. Let's create a few to | 
