Could this be simplified #9438
Unanswered
The-Futurist
asked this question in
Language Ideas
Replies: 1 comment 2 replies
-
C# and the .NET runtime has no concept of variadic generic parameters. Not that I think that would work in your case as you explicitly have five separate generic type parameters and the body depends on that. |
Beta Was this translation helpful? Give feedback.
2 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.
-
This might be judged and edge case by the team (or there are subtleties I'm not considering), but here's what I wanted to mention:
Why is it that we can't simply write:
At runtime this is invoked with multiple
R
that differ but do share the base classR
:Perhaps there is way to do this better and I'm not aware?
(this is all part of some tree probing code,
GetNode
is actually better calledGetChildNode
in fact. It pertains to cases where we know that there is only ever one child of type<whatever>
under each node).Beta Was this translation helpful? Give feedback.
All reactions