YMFF icon indicating copy to clipboard operation
YMFF copied to clipboard

Introduce macros for easier setup

Open yakovmanshin opened this issue 2 months ago • 0 comments

  • 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", …)
}

yakovmanshin avatar Apr 26 '24 17:04 yakovmanshin