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

Remove need to nest functions passed to to_*factory and to_*dynamic_value #24

Open
1 of 2 tasks
HampusMat opened this issue Jul 7, 2024 · 0 comments
Open
1 of 2 tasks
Labels
enhancement A general improvement suggestion
Milestone

Comments

@HampusMat
Copy link
Owner

HampusMat commented Jul 7, 2024

It's a big hassle that a factory function have to be nested inside of another function when passed to the to_*factory binding builder functions. Instead of the wrapping function taking a DI container reference, the factory function can take a DI container reference and can be curried before it is given to the user.

  • to_*factory
  • to_*dynamic_value
@HampusMat HampusMat added the enhancement A general improvement suggestion label Jul 7, 2024
@HampusMat HampusMat changed the title Remove need to nest factories passed to to_*factory Remove need to nest factories passed to to_*factory binding builder functions Jul 7, 2024
@HampusMat HampusMat changed the title Remove need to nest factories passed to to_*factory binding builder functions Remove need to nest factory passed to to_*factory binding builder functions in function Jul 7, 2024
@HampusMat HampusMat added this to the v0.6.0 milestone Sep 12, 2024
@HampusMat HampusMat changed the title Remove need to nest factory passed to to_*factory binding builder functions in function Remove need to nest functions passed to to_*factory and to_*dynamic_value Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A general improvement suggestion
Projects
None yet
Development

No branches or pull requests

1 participant