Matching generics #745
kyouko-taiga
started this conversation in
Language design
Replies: 0 comments 1 reply
-
Is probably more feasible.
might work, but in this case I think the type of I don't suppose |
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
Uh oh!
There was an error while loading. Please reload this page.
-
It would be interesting to be able to match generic arguments against some form of pattern:
In this example,
x
would match any type that is a map fromT
to some arbitrary type. The question is, what is the type ofx
?It cannot be
Map<T, Any>
because it would imply some kind of conversion ofa
's value representation.Beta Was this translation helpful? Give feedback.
All reactions