-
-
Notifications
You must be signed in to change notification settings - Fork 64
Allow generating context as an implicit parameter #810
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
Allow generating context as an implicit parameter #810
Conversation
|
I think the idea of opt-in for generation of using/implicits is nice wrt. ergonimics. |
10f747f to
3937918
Compare
7ed2485 to
4875fd9
Compare
|
@ahjohannessen this one is rebased and squashed. |
|
Great work! 👍 |
|
@ahjohannessen thanks! What's your plan for the release? Should we have the RC first? |
|
@iRevive I have released v3.0.0. Do not think a RC is necessary. The work you have done is opt-in, so it is not that disruptive. |
Perfect, thank you! |
Motivation
With the recently released #669, there is a new scenario where the context can be extended, and it can be passed implicitly to inner functions.
Let's consider the following example:
The usage is a little noisy and repetitive. With the new flag, we can put ctx into an implicit position in the generated service: