-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Named Generic Type Parameter #26834
Comments
We're still investigating the whole named type arguments story as part of partial inference and handling of generics defaults (see linked PRs as suggested). I think we can confidently say that the "simple" case of passing type arguments by name has been mostly ruled out due to compat concerns - we have been very careful so far to make type parameter names not observable outside the declaration itself and would prefer to keep it that way unless there's absolutely no other way to accomplish the task. |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Search Terms
Suggestion
Allow generic consumer to pass generic argument by name, for instance:
This would allow us to write and use a generic with thousands of parameter without decreasing readability.
NOTES
Use Cases
Above
Examples
Above
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: