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

Introduce macros for easier setup #124

Open
yakovmanshin opened this issue Apr 26, 2024 · 0 comments
Open

Introduce macros for easier setup #124

yakovmanshin opened this issue Apr 26, 2024 · 0 comments
Assignees
Labels
new New feature or request research The topic needs research and clarification
Milestone

Comments

@yakovmanshin
Copy link
Owner

yakovmanshin commented Apr 26, 2024

  • Instead of manually declaring the namespace, resolver, and individual flags, I’d like to have something less error-prone
  • Additionally, code generation with macros allows to use async feature flags in an elegant way (something property wrappers aren’t capable of)

This is how I imagine the result:

#FeatureFlags(namespace: "MyFeatureFlags") {
    #Flag(key: "FFKey", name: "isEnabled", )
    #AsyncFlag(key: "AsyncFFKey", name: "isEnabledAsync", )
} stores: {
    UserDefaultsStore()
    MyCustomStore()
}
@yakovmanshin yakovmanshin added the new New feature or request label Apr 26, 2024
@yakovmanshin yakovmanshin added this to the v4.0.0 milestone Apr 26, 2024
@yakovmanshin yakovmanshin self-assigned this Apr 26, 2024
@yakovmanshin yakovmanshin added the research The topic needs research and clarification label May 11, 2024
@yakovmanshin yakovmanshin modified the milestones: v4.0.0, YMFF Next May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new New feature or request research The topic needs research and clarification
Projects
None yet
Development

No branches or pull requests

1 participant