Pitch: @DependencyEndpoint generated properties #270
maximkrouk
started this conversation in
Ideas
Replies: 1 comment
-
Also might make sense to create published/asyncPublished properties, I'm currently experimenting with property wrappers in a separate project, maybe at some point I'll rewrite them to macros and create a package or PR (if it makes sense to you to add those to the lib) 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes Clients API could be a bit more ergonomic if it could provide property accessors or even writable properties.
Currently we have
Example:
It can be generalized if we make this client generic over
Value
, we can even make it callable as function to make it a bit more fancyIn any case it's not very ergonomic both at the call and declaration sites.
My proposal is to allow DependencyEndpoint to be attached to properties with the following processing
Declaration example:
Expansion example:
Beta Was this translation helpful? Give feedback.
All reactions