0:00 / 0:00
#clojuremacros#clojure#metaprogramming
Grokking Clojure Macros - A Complete Guide [2022]
Vishal Gautam
992 subscribers • 14 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Vishal Gautam
Intermediate. Assumes working knowledge.
838 views4 years ago1 recommendation
Programming languagesLisp and ClojureLanguage design and type systems
Vishal Gautam explains Clojure macros by walking through the source code of core macros.
Learn and master Clojure's macros by reading source code. Rationale 1. I wanted a quick way to gloss over entire list of Clojure macros and 2. I didn't want to go to Clojure source every single time. Hence this video was born. This video covers entire 71 Clojure macros. Feel free to pause and read the doc + source. List of Macros List Intro - Intro + run clojure repo locally - How many functions in clojure.core [stackoverflow] - defmacro definition - when, when-not - cond, lazy-seq, if-not - and, or - locking, .., thread-first, thread-last - defmulti - defmethod, assert-args - if-let, when-let, if-some, when-some - binding, with-bindings, sync, io! - vswap!, dotimes, declare, doseq, dotimes - import, with-open, doto, memfn, time - def-aset, defstruct - let - fn - loop, when-let, lazy-cat, for - comment - with-out-str, with-in-str, assert, defn- - dosync, with-precision, definline, amap, areduce, with-loading-context - ns - refer-clojure, defonce - while, condp, add-doc-and-meta, letfn, case - when-class - future - pvalues, with-redefs, cond thread first + last - as thread first, some thread first + last FYI: comment is my favourite macro. Which one is yours?