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

Clojure's main rudiment: Macros - Construindo a fundação

Clojure's main rudiment: Macros - Construindo a fundação

Uma visão abrangente e conceitual sobre Macros em Clojure.

6c80f7f96a7ef58e5c6da01620ba78ab?s=128

Tomás Augusto Müller

August 06, 2016
Tweet

Transcript

  1. Clojure's main rudiment: Macros Construindo a fundação

  2. “O código são dados!”

  3. “O código são dados!”

  4. None
  5. Hands-on 1/3

  6. Sistema de avaliação em linguagens não-Lisp Fonte: Brave Clojure

  7. List’s -> Tree’s Fonte: Brave Clojure

  8. Sistema de avaliação em Clojure Fonte: Brave Clojure

  9. Recapitulando! • Reader • Reader Macros • (hands-on 2/3) •

    Evaluator • Symbols • Special-forms
  10. Clojure Macros

  11. Sistema de avaliação em Clojure Fonte: Brave Clojure

  12. Hands-on 3/3

  13. –Rich Hickey (http://codequarterly.com/2011/rich-hickey/) “You can reach a point with Lisp

    where, between the conceptual simplicity, the large libraries, and the customization of macros, you are able to write only code that matters. And, once there, you are able to achieve a very high degree of focus, such as you would when playing Go, or playing a musical instrument, or meditating. And then, as with those activities, there can be a feeling of elation that accompanies that mental state of focus.”