exercism / exercism/elixir

Implement new Concept Exercise: `macros`

未关闭
#590 13 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
concept-exercise v3 x:action/create x:knowledge/intermediate x:module/concept-exercise x:size/large x:type/content
主要语言
Elixir
星标
664
派生
416
PR 合并指标
30 天内没有已合并 PR

描述

## 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`

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。