© Mark McDonnell 2017

Mark McDonnell, Quick Clojure, https://doi.org/10.1007/978-1-4842-2952-1_10

10. Macros

Mark McDonnell

(1)southend-on-Sea, UK

Arguably one of the most interesting features of Clojure is its ability to provide functionality that allows the user to redefine the language and add their own features that aren’t available by default. I mean, how many times have you written some code (in whatever language, but let’s say JavaScript) and thought “I really wish I had feature X from language Y”?

With a language such as JavaScript , I’m willing to bet that happens a lot. I’m sure there will be some JavaScript developers who would counter with a point about compilers being available that let you compile valid ES7 code down to ES5 code (for ...

Get Quick Clojure: Effective Functional Programming 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.