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

feat: stack-based context to prevent parameter drilling #21

Merged
merged 6 commits into from
Jun 22, 2021

Conversation

petergaultney
Copy link
Contributor

@petergaultney petergaultney commented May 19, 2021

use ContextualDefault to essentially inject dependencies across contexts, the way you would do if a function wrapping some IO were a configurable OO client that got passed all the way down.

It's still preferable to use functional-core, imperative shell approaches, but this will solve some problems in a pinch.

@petergaultney petergaultney changed the title oncall defaults and StackContext, to try to solve some common usability issues feat: oncall defaults and StackContext, to try to solve some common usability issues May 20, 2021
@petergaultney petergaultney changed the title feat: oncall defaults and StackContext, to try to solve some common usability issues feat: oncall defaults and StackContext, to solve some common usability issues Jun 6, 2021
@petergaultney petergaultney changed the title feat: oncall defaults and StackContext, to solve some common usability issues feat: stack-based context to prevent parameter drilling Jun 10, 2021
@petergaultney petergaultney merged commit c9ec1d7 into develop Jun 22, 2021
@petergaultney petergaultney deleted the feature/stack-context-and-oncall-defaults branch June 22, 2021 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

1 participant