Function aggregation feature #4751
Unanswered
lakylekidd
asked this question in
Language Ideas
Replies: 1 comment 3 replies
-
Personally, I don't see how this kind of syntax sugar could raise to the level where it would be worthwhile to add it to the language. Consider:
|
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
Hello All,
I was thinking of a cool implementation for CSharp which involves aggregating functions. Basically, we come across many situations where we build a wrapper service/contract with several functions that all point to the same internal one, just so we can define a standard contract for future extension. Example:
It would be cool if we could aggregate these parent functions, just like a switch function like so:
What do you guys think? Would that be something useful? Can you think of a different implementation for this functionality?
I'd love to hear your thoughts,
Billy
Beta Was this translation helpful? Give feedback.
All reactions