-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
go/types, types2: be consistent about the words 'parameterized' vs 'generic' in error messages and documentation #49593
Comments
Just going through our 1.18 issues: we have not gotten to this yet, but should this week before the RC is cut. |
We should use |
The spec now uses the term "generic" rather than "parameterized" to make it clear that we talk about type parameters (and not other function parameters). |
Change https://go.dev/cl/391154 mentions this issue: |
Mailed https://go.dev/cl/391154 to address documentation. I think any remaining error messages will have to wait until 1.19. @griesemer do you agree? |
Address several areas where documentation was inaccurate or unclear regarding generic types. Also prefer the use of the word 'generic' over 'parameterized', and add additional documentation for the use of SetConstraint. For #49593 Change-Id: Iccac60d1b3e2c45a57a3d03b3c10984293af57dd Reviewed-on: https://go-review.googlesource.com/c/go/+/391154 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
Change https://go.dev/cl/391356 mentions this issue: |
Now that documentation has been updated, moving this to 1.19 for any remaining tasks. |
…respect to generic types Address several areas where documentation was inaccurate or unclear regarding generic types. Also prefer the use of the word 'generic' over 'parameterized', and add additional documentation for the use of SetConstraint. For #49593 Change-Id: Iccac60d1b3e2c45a57a3d03b3c10984293af57dd Reviewed-on: https://go-review.googlesource.com/c/go/+/391154 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> (cherry picked from commit e189b5e) Reviewed-on: https://go-review.googlesource.com/c/go/+/391356 Trust: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
We looked through error messages, and they all seem appropriate now. Closing. |
Reminder issue: we have some error messages that use the word 'generic', when we've been preferring 'parameterized' in most cases. We also have some instances of the word 'generic' in documentation.
We should decide on exactly when to use each word, and do an audit for consistent usage. FWIW, I sometimes prefer 'generic' because it is shorter than 'parameterized' and not liable to be confused by normal function parameters. But most important to be consistent.
Assigning the Go1.18 milestone, but this is not a release blocker.
CC @griesemer
The text was updated successfully, but these errors were encountered: