DeepRead
Cover of Metaprogramming Elixir

Metaprogramming Elixir

Chris McCord · 2015

Programming and computer science › Functional programming languages

#8,877 most recommended

About the book

Covers Elixir's macro system and compile-time metaprogramming: how Elixir code is represented as quoted AST, how macros transform that AST, and how to use them to extend the language. It is aimed at developers who already know Elixir and want to write their own macros and domain-specific languages. Its central claim is that Elixir's syntax, which is itself data, makes metaprogramming a practical tool rather than a hazard, as long as it is used with attention to hygiene, the boundary between compile time and runtime, and readability. The book works through quote and unquote, variable hygiene, and code injection, then shows how macros can generate functions and modules and build DSLs that remove repetition and express intent. It also presents macros as a last resort where ordinary functions would do.

Written by Claude from what it knows of this book.

What Hacker News says 75% recommend · 0% critical

024201520162018202020212016 peak · 2
This bookAverage book in Functional programming languages

In the commenters’ own words

What Open Library readers say 4.00 from 2 ratings

  1. 50
  2. 42
  3. 30
  4. 20
  5. 10
  • 3 want to read
  • 0 reading
  • 2 have read

Only 2 ratings: treat the average as a hint.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

Details

First published
2015
ISBN
9781680500417
Editions known
2 at Open Library
Open Library
OL19547074W

Computer programmingComputer programsElixir (Computer program language)

Explore in the mosaic

Read next: its neighbours on the mosaic