Wrapping Up
Clojure macros let you automate patterns in your code. Because they transform source code at macro expansion time, you can use macros to abstract away any kind of pattern in your code. You are not limited to working within Clojure. With macros, you can extend Clojure into your problem domain.
Footnotes
- [54]
-
We are not trying to beat up on Java in particular; it is just easier to talk about a specific language, and Java is well known.
- [55]
-
http://en.wikipedia.org/wiki/Design_pattern_(computer_science)
- [56]
Get Programming Clojure, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.