-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
reflect: add Pointer #47651
Comments
Change https://golang.org/cl/341333 mentions this issue: |
Seems reasonable to me. |
So you just want Pointer to point to Ptr? |
FWIW, I was writing some reflect code a month or two back and had trouble remembering if I wanted Ptr or Pointer. |
This proposal has been added to the active column of the proposals project |
Based on the discussion above, this proposal seems like a likely accept. |
No change in consensus, so accepted. 🎉 |
Change https://golang.org/cl/358454 mentions this issue: |
Updates #47651 Updates #48665 Change-Id: I69a87b45a5cad7a07fbd855040cd9935cf874554 Reviewed-on: https://go-review.googlesource.com/c/go/+/358454 Trust: Cuong Manh Le <[email protected]> Run-TryBot: Cuong Manh Le <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
Per chat elsewhere, reflect.Ptr is weird and doesn't match reflect.UnsafePointer or unsafe.Pointer.
Proposal: add reflect.Pointer matching reflect.Ptr.
Likewise reflect.PtrTo -> reflect.PointerTo probably.
The text was updated successfully, but these errors were encountered: