diff options
author | Sergei <sergei.solomonov@gmail.com> | 2017-04-01 23:00:08 +0700 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2017-04-01 18:00:08 +0200 |
commit | 5ab4fb659a34e46873c7734e8d0ce0f6c6c860e5 (patch) | |
tree | 906bb4f94d034dc55fd0ab85be86a3e2f71e8815 /clojure-macros.html.markdown | |
parent | 82c3ce4e8c4fc17a30290f87698ca5d25e113312 (diff) |
Update clojure-macros.html.markdown (#2694)
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 |