# \#book-metaprogramming-elixir

**URL:** https://forum.devtalk.com/tag/book-metaprogramming-elixir/297.md

[Latest](https://forum.devtalk.com/latest.md) · [Categories](https://forum.devtalk.com/categories.md) · [Tags](https://forum.devtalk.com/tags.md)

---

## [Metaprogramming Elixir - Assertion (page 41-42)](https://forum.devtalk.com/t/metaprogramming-elixir-assertion-page-41-42/158222)

<div class="topic-metadata">

**Author:** [@ediw8311xht](https://forum.devtalk.com/u/ediw8311xht)\
**Replies:** 1\
**Last updated:** [21 June 2024 10:30 UTC](https://forum.devtalk.com/t/metaprogramming-elixir-assertion-page-41-42/158222 "2024-06-21T10:30:52Z")

</div>

The test function in the Assertion module only tests the last assert. This is because only the last command output is returned and received by Assertion.Test.run For example: defmodule MathTest do use Assertion te…

---

## [Metaprogramming Elixir: Pos. 611](https://forum.devtalk.com/t/metaprogramming-elixir-pos-611/4156)

<div class="topic-metadata">

**Author:** [@Walheimat](https://forum.devtalk.com/u/Walheimat)\
**Replies:** 1\
**Last updated:** [17 October 2023 02:01 UTC](https://forum.devtalk.com/t/metaprogramming-elixir-pos-611/4156 "2023-10-17T02:01:13Z")

</div>

Example: The Language of Macros - Injecting Code - ‘callers\_context.exs’ no longer works (Elixir 1.10.4+) (Pos. 600-627) The function calls inspect \_\_info\_\_(:functions), not sure that ever worked, but inspect \_\_MODULE\_\_…

---

## [1st or 3rd?](https://forum.devtalk.com/t/1st-or-3rd/110345)

<div class="topic-metadata">

**Author:** [@VAK](https://forum.devtalk.com/u/VAK)\
**Replies:** 0\
**Last updated:** [24 May 2023 13:44 UTC](https://forum.devtalk.com/t/1st-or-3rd/110345 "2023-05-24T13:44:57Z")

</div>

On page 9 of “Metaprogramming Elixir” I came across, I think, an error. I thought for a long time whether to write about it or not, but I found a repetition of the same controversial idea in another author. Decided I nee…

---

## [ Metaprogramming Elixir - translator\_test not testing what it claims (Section 37)](https://forum.devtalk.com/t/metaprogramming-elixir-translator-test-not-testing-what-it-claims-section-37/73688)

<div class="topic-metadata">

**Author:** [@a-maze-d](https://forum.devtalk.com/u/a-maze-d)\
**Replies:** 1\
**Last updated:** [15 September 2022 14:50 UTC](https://forum.devtalk.com/t/metaprogramming-elixir-translator-test-not-testing-what-it-claims-section-37/73688 "2022-09-15T14:50:49Z")

</div>

I’m reading an ebook version, therefore only the section number instead of a page number. It’s part of the “Easy integration testing with nested modules” section. The advanced\_code\_gen/translator\_test.exs file contains …

---

## [Metaprogramming Elixir: code example error (page 22)](https://forum.devtalk.com/t/metaprogramming-elixir-code-example-error-page-22/67298)

<div class="topic-metadata">

**Author:** [@deadbeef](https://forum.devtalk.com/u/deadbeef)\
**Replies:** 0\
**Last updated:** [3 August 2022 14:14 UTC](https://forum.devtalk.com/t/metaprogramming-elixir-code-example-error-page-22/67298 "2022-08-03T14:14:05Z")

</div>

The code example on page 22 is intended to show how to re-create Elixir’s if macro. However, it uses if on line 3. The macro block just passes the args to if. This could be a typo and meant to be my\_if. If that’s the ca…

---

## [Review: Metaprogramming Elixir - A great read for this beginner](https://forum.devtalk.com/t/review-metaprogramming-elixir-a-great-read-for-this-beginner/1189)

<div class="topic-metadata">

**Author:** [@Ted](https://forum.devtalk.com/u/Ted)\
**Replies:** 5\
**Last updated:** [31 July 2020 19:43 UTC](https://forum.devtalk.com/t/review-metaprogramming-elixir-a-great-read-for-this-beginner/1189 "2020-07-31T19:43:17Z")

</div>

I picked up Metaprogramming Elixir with the intent of reading it at a later time, once I had a bit more exposure and experience with Elixir. But then I took a little peek at the first chapter and I was hooked. Chris Mc…

---

## [Metaprogramming Elixir (PragProg)](https://forum.devtalk.com/t/metaprogramming-elixir-pragprog/529)

<div class="topic-metadata">

**Author:** [@PragmaticBookshelf](https://forum.devtalk.com/u/PragmaticBookshelf)\
**Replies:** 0\
**Last updated:** [29 April 2020 21:44 UTC](https://forum.devtalk.com/t/metaprogramming-elixir-pragprog/529 "2020-04-29T21:44:12Z")

</div>

Chris McCord edited by Jacquelyn Carter @jkcarter Metaprogramming is one of Elixir’s greatest features. Maybe you’ve played with the basics or written a few macros. Now you want to take it to the next level. This b…
