[New Chapter] CGP Patterns: Field Accessors #6
soareschen
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A few new chapters for CGP Patterns have been released, with a deep dive into field accessors: https://patterns.contextgeneric.dev/field-accessors.html
Using impl-side dependencies, CGP provides a way to inject dependencies into providers without polluting the public interfaces with additional constraints. A common use of dependency injection is for the provider to retrieve some values from the context. More commonly, we call this pattern field accessor or getter, since we are getting or accessing field values from the context. In this chapter, we will walk through how to effectively define and use field accessors with CGP.
Beta Was this translation helpful? Give feedback.
All reactions