An Architect's View

CFML, Clojure, Software Design, Frameworks and more...

An Architect's View

A day of Clojure macros

May 23, 2011 ·

About a year ago I had the good fortune to attend Amit Rathore's ProClojure boot camp which greatly accelerated my Clojure learning experience. This last weekend I attended another day of Amit's training: a day of Clojure macros.

The day started out very gently (and at a more reasonable hour!) with a brief introduction to basic macros - unless, declare, infix - and then things got interesting with some advanced macros (modifying functions), anaphoric macros (capturing variables), macros defining macros and, finally, an entire object model in about 40 lines of Clojure!

I pushed my code examples and notes up to github - feel free to take a look.

Tags: clojure

0 responses