-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Generic details 12: parameterized types #1146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me; only relatively trivial comments here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a couple of minor phrasing changes.
Co-authored-by: Richard Smith <[email protected]>
Co-authored-by: Richard Smith <[email protected]>
This proposal has three main contributions: - Types with generic parameters have an identity that consists of the types names plus the values of those parameters. - The parameters of a type may be deduced from a function's argument. - Types with generic parameters do not support specialization. Instead, a type can delegate to an interface to opt in to allowing specific customization points. Co-authored-by: Richard Smith <[email protected]>
This proposal has three main contributions: