~/talk

Macros

Talkat ElixirDaze 2017 · 2017-03-02..03-03· [developer-experience]
links:none on file
slides:none on file

Claims macros let code inspect and transform ASTs so you can build things impossible with functions — an expression tracer that emits the exact steps and a controller responder DSL that injects handlers at compile time — but they bite: macros run in the caller or compile context so use macro blocks evaluate early, hygiene can capture caller variables and break assumptions, testing requires spawning or recontextualizing code, and traversal helpers like Macro.walk and Macro.expand are indispensable for building working, debuggable macros.

AI-written summary · about

  1. 0:00Introduction to macros
  2. 2:52Why use macros
  3. 5:05Understanding the AST
  4. 7:12Building and inspecting macros
  5. 12:42Macro hygiene and context
  6. 16:11Advanced usage and patterns
  7. 19:23Testing macro code
  8. 21:46Best practices and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.