-
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
spec: typo in the Go Spec #22495
Comments
\cc @mdempsky @griesemer |
Sorry, I guess I misstated it slightly. At the very least, B0 shouldn't be listed twice. |
That's the whole point: Who says that But given the number of bug reports this gets it looks like the point is not coming across, or perhaps it too academic. |
Okay, thanks for the explanation. Sorry for the confusion. |
Change https://golang.org/cl/87417 mentions this issue: |
Every few months we get a new error report claiming that there is a typo in the spec related to this specific example. Clearly, the fact that two types with the same identifier are identical seems exceedingly obvious to readers; thus the example seems not worth the trouble. Removing it. For #9226. For #22202. For #22495. For #23096. For #23409. There may be more. Change-Id: I003ba79dc460ffb028a4ecb5f29efd60f2551912 Reviewed-on: https://go-review.googlesource.com/87417 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
There appears to be a typo in the go spec under https://golang.org/ref/spec#Type_identity. Where it says "These types are identical" it lists:
B0, B0, and C0
Which should probably be:
B0, B1, and C0
Since later it says:
B0 and B1 are different because they are new types created by distinct type definitions; ...
The text was updated successfully, but these errors were encountered: