exercism / exercism/elixir

Implement new Concept Exercise: `macros`

Open
#590 13 comments 2 reactions 0 assignees View on GitHub
concept-exercise v3 x:action/create x:knowledge/intermediate x:module/concept-exercise x:size/large x:type/content
Dominant language
Elixir
Stars
664
Forks
416
PR merge metrics
No merged PRs in 30d

Description

## Learning objectives

- `defmacro`
- the `Macro` module
- what's an AST
- when *not* to use macros

## Out of scope

I am not sure if explaining `require`/`use` in the same exercise would be a good idea. It's a lot of difficult concepts at once. But maybe it makes sense?

## Concepts

- `macros`

## Prerequisites

Come up with something that will put this concept far down the concept tree. Maybe this should depend on a non-existent yet concept of dynamically defining functions without macros? (see https://github.com/exercism/elixir/pull/583#discussion_r567406673)

## Practice exercises

Those practice exercises should have `macros` in their prerequisites and as `practices`:
- `dot-dsl`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.