API for EnvironmentLess Stores

Following along with creating Stateless and Actionless viewStores in #43 , what are the thoughts on extending Store and Reducer with functions where Environment is Void? I am finding that for most stores, I don't need an Environment object.

I think it would be nice to have, but could bloat TCA quite a bit as you would have extensions for 3 possible scenarios:

  • Environment is Void
  • LocalEnvironment is void (for scopes)
    -GlobalEnvironment is void (for pullbacks)
1 Like

Thanks for moving the discussion here, @Nathan_Mann! For more original context, folks can visit the original thread on GitHub: https://github.com/pointfreeco/swift-composable-architecture/issues/47