GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing clojure.org — Clojure - Macros Macros
MacrosTable of Contents
Clojure has a programmatic macro system which allows the compiler to be extended by user code. Macros can be used to define syntactic constructs which would require primitives or built-in support in other languages. Many core constructs of Clojure are not, in fact, primitives, but are normal macros.
Other macros re-arrange forms in useful ways, like the
Special variablesTwo special variables are available inside defmacro for more advanced usages:
All of the following macros are documented on the API page. Many are also discussed on topic pages as noted: Creating macros: defmacro definline macroexpand-1 macroexpand A few special forms are actually implemented as macros, primarily to provide destructuring: fn let loop Copyright 2008-2022 Rich Hickey | Privacy Policy
Logo & site design by Tom Hickey Published 2026-11-11
Update this page |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |