magic icon indicating copy to clipboard operation
magic copied to clipboard

Unify options system

Open nasser opened this issue 3 years ago • 0 comments

There are currently three ways to configure compilation in MAGIC

  1. The magic.flags dynamic vars
  2. Spells
  3. Option maps in magic.api

The divergence is not a result of design but of history. There's no reason not to unify these three under a single system.

magic.flags is the simplest and most idiomatic of them all so should be expanded to trigger spells and populate magic.api option maps as well. The internal implementation of the spells and option maps can remain as implementation details.

nasser avatar Oct 31 '22 12:10 nasser