ityonemo / ityonemo/realbook

what if someone wants to inject an EXTRA module

Open
#7 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Elixir
Stars
11
Forks
1
PR merge metrics
No merged PRs in 30d

Description

allow a directive that allows a conditional injection of another module (possibly by overloading the `requires` macro).

configuration a: [a, b, c, d]
configuration b: [a, b, c, e, d]

Maybe something like this?

`d.exs`
```elixir
...
play do
if (get :configuration) == :b do
requires "e.exs"
end
end
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the `requires` macro and the `play` block shown in `d.exs`, then compare configurations a and b. Determine how a conditional injection of `e.exs` should interact with the existing module sequence and configuration lookup. Done means the proposed directive behavior is defined and covered for both configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.