Skip to content
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

spec: "type parameters are interfaces" is confusing #57310

Open
griesemer opened this issue Dec 14, 2022 · 1 comment
Open

spec: "type parameters are interfaces" is confusing #57310

griesemer opened this issue Dec 14, 2022 · 1 comment
Assignees
Milestone

Comments

@griesemer
Copy link
Contributor

Per the spec, the underlying type of a type parameter is its constraint interface. Similarly to how we talk about an X type (say, an array type) if the underlying type of a named type is X, we also talk about interface types for type parameters. This is confusing.

Reminder issue to try clearer prose where needed.

See also @findleyr 's comment here.

@griesemer griesemer added this to the Go1.21 milestone Dec 14, 2022
@griesemer griesemer self-assigned this Dec 14, 2022
@griesemer griesemer modified the milestones: Go1.21, Go1.22 Jul 19, 2023
@griesemer
Copy link
Contributor Author

Not going to touch this for 1.22.

@griesemer griesemer modified the milestones: Go1.22, Go1.23 Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant