Injection by argument name #376
Unanswered
tuukkamustonen
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
We cannot really rely on names as they should be globally unique. We were thinking about this feature and it's hard to formalize limitations and requirements. Do you have any ideas here? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I like the strong emphasis on types, but what if I have multiple instances of same type (e.g. two S3 buckets). For now I can use
NewTypee.g.But it could be useful to inject by variable name so I could just:
Wouldn't have to alter the function signature, which would be sort of a side bonus.
Beta Was this translation helpful? Give feedback.
All reactions