Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lisp Macros with Clojure

Lisp Macros with Clojure

The main feature of Clojure and other lisps that jump out to most people is all those parentheses. In this workshop we’ll put them to good use by exploring what they enable – sophisticated macros for compile-time programming. We’ll introduce the the basic concepts of lisp macros, Clojure’s tools for creating them, and work through a series of increasingly sophisticated exercises, building macro-writing skills and learning best practices for when, and when not, to use them.

Atomic Object

August 01, 2014
Tweet

More Decks by Atomic Object

Other Decks in Technology

Transcript

  1. and-1 and-1 takes two arguments. The second argument short-circuits. and

    returns the value of the last evaluated expression.
  2. macros are good for • transforming code – like debug

    or -> • flow control – like and or twice • binding variables • high performance abstraction