-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
all: rewrite interface{}
to any
#49884
Comments
The type checker preserves the difference between |
interface{}
to any
@findleyr Please comment here once you're satisfied with the handling of |
Change https://golang.org/cl/368254 mentions this issue: |
No, please don't do that. I'm used to the |
This comment has been minimized.
This comment has been minimized.
What problem does this solve? Can you describe? It also seems to me to break backward compatibility. |
No, it doesn't break backward compatibility, see original issue/proposal. |
This is not the issue, nor the time, to debate allowing any. This issue is about tracking certain work. Regarding allowing any at all, we had the proposal discussion, and the proposal was accepted. See #33232 (comment) for the rationale. No one is raising any new information that would warrant reopening the decision. |
Change https://golang.org/cl/369955 mentions this issue: |
In Go 1.18 context uses any, not interface{}. Fix the test in a way that should work for both older and newer versions. For golang/go#49884. Change-Id: Ib8690876c6a9364b98f9c7ba739b953a8d7565d4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/369955 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Change https://golang.org/cl/370294 mentions this issue: |
The switch to use any in standard library signatures breaks many of our tests that match signature strings exactly. Fix this by normalizing strings to use 'any' in place of interface{}, before comparing. Updates golang/go#49884 Change-Id: If18ce1035b3206f37d7de6e584cf2c2cae9481c5 Reviewed-on: https://go-review.googlesource.com/c/tools/+/370294 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Friendly check-in here, this is one of the last two issues blocking the beta of 1.18. Has there been an update recently? |
Change https://golang.org/cl/371297 mentions this issue: |
h2_bundle.go is automatically generated from x/net/http2. Any formatting changes within that file need to be first made upstream. This brings the contents of h2_bundle.go back in line with the upstream generator, fixing the cmd/internal/moddeps test that is currently failing on the longtest builders. For #49884 Change-Id: I5757240b77e250e0026b8a52a0e867e1578ec2d4 Reviewed-on: https://go-review.googlesource.com/c/go/+/371297 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Do doc comments need to be updated or are they fine to be left as |
@seankhliao This is issue is closed. Please continue this discussion elsewhere. That said: it depends. Simply replacing But again, please discuss this elsewhere. |
Reminder issue.
The text was updated successfully, but these errors were encountered: