small medium large xlarge

Mastering Clojure Macros; Win 5 Print Books

August 20, 2014

Level up your skills by taking advantage of Clojure's powerful macro system, and see how you could win five free print books. Read on for details.

Mastering Clojure Macros

Clojure offers some sharp tools in its toolbox, and one of the sharpest is its macro system. This book will help you write macros using Clojure, and more importantly, recognize when you should be using macros in the first place.

The Lisp "code-as-data" philosophy gives tremendous advantages to macro authors and users. You can use macros to evaluate code in other contexts, move computations to compile time, and create beautiful API layers. You don't need to wait on the Clojure language itself to add new features, you'll learn how to implement even the lowest-level features as macros. You'll step through representative samples of how to use macros in production libraries and applications, find clear details on how to construct macros, and learn pointers to avoid obstacles that often trip up macro amateurs.

Clojure macros are more straightforward to use than metaprogramming features in many other languages, but they're different enough from normal programming to present challenges of their own. Mastering Clojure Macros examines some of these issues, along with alternatives to macros where they exist.

By the time you finish this book, you'll be thinking like a macro professional.

Now available at Paper books start shipping on 8/29.

Help Developers and Win Print Books!

You could be featured in an upcoming weekly newsletter, and win five free print books.

Email us at and tell us how our books have changed you, your team, or your company for the better. Tell us your story in 3 or 4 paragraphs or so. We'll read all your stories and draw at least one winner who will receive five free print books. If we get enough great entries, we may pick additional winners. It's up to you.

We'll feature the winning entry or entries right here in the newsletter, as well as on our website at for the whole world to see.

Tell us your story, and help out your fellow software developers.

Upcoming Author Appearances

  • 2014-08-21 Noel Rappin, Madison Ruby, Madison WI
  • 2014-08-26 Johanna Rothman, Hiring Without Fear: Airconf
  • 2014-09-02 Johanna Rothman, Agile Program Management Webinar
  • Don't Get Left Out

    Are your friends jealous that you get these spiffy email newsletters and they don't? Clue them in that all they need to do is create an account on (email address and password is all it takes) and select the checkbox to receive newsletters.

    Are you following us on Twitter and/or Facebook? Here's where you can find us and keep up with the latest news and commentary, and occasional discounts:

    Tell your friends! Tweet this

    Follow us on Twitter: @pragprog, @pragpub, Andy @PragmaticAndy and Dave @pragdave.

    Coming Soon:

    • Fire in the Valley in print
    • Seven More Languages in Seven Weeks in print
    • Dart 1.0

    Recently Released:

    Thanks for your continued support,

    Andy & Dave The Pragmatic Programmers

    Books • eBooks • PragPub Magazine • Audiobooks and Screencasts