Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spell incantation options “mixin“ #25

Closed
svengreb opened this issue Nov 23, 2020 · 0 comments · Fixed by #26
Closed

Spell incantation options “mixin“ #25

svengreb opened this issue Nov 23, 2020 · 0 comments · Fixed by #26

Comments

@svengreb
Copy link
Owner

To allow to compose, manipulate and read spell incantation options after the initial creation, two new types will be added for the spell packages:

  • 🅸 spell.Options — A interface type as a generic representation for spell.Incantation options.
  • 🅸 spell.Mixin — A interface type that allows to compose functions that process spell.Options of spell.Incantations.
    • Apply(Options) (Options, error) — applies generic spell.Options to spell.Incantation options.
@svengreb svengreb added this to the 0.1.0 milestone Nov 23, 2020
@svengreb svengreb self-assigned this Nov 23, 2020
svengreb added a commit that referenced this issue Nov 23, 2020
To allow to compose, manipulate and read spell incantation options afte
the initial creation, two new types will be added for the spell
packages [1]:

- <I> `spell.Options` - A `interface` type as a generic representation
  for `spell.Incantation` options.
- <I> `spell.Mixin` - A `interface` type that allows to compose
  functions that process `spell.Options` of `spell.Incantation`s.
  - `Apply(Options) (Options, error)` - applies generic `spell.Options`
    to `spell.Incantation` options.

[1]: https://pkg.go.dev/github.com/svengreb/wand/pkg/spell

GH-25
svengreb added a commit that referenced this issue Nov 23, 2020
To allow to compose, manipulate and read spell incantation options afte
the initial creation, two new types will be added for the spell
packages [1]:

- <I> `spell.Options` - A `interface` type as a generic representation
  for `spell.Incantation` options.
- <I> `spell.Mixin` - A `interface` type that allows to compose
  functions that process `spell.Options` of `spell.Incantation`s.
  - `Apply(Options) (Options, error)` - applies generic `spell.Options`
    to `spell.Incantation` options.

[1]: https://pkg.go.dev/github.com/svengreb/wand/pkg/spell

Closes GH-25
@svengreb svengreb removed their assignment Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant