-
Notifications
You must be signed in to change notification settings - Fork 18k
reflect: Elem() is overloaded between different Value kinds #4503
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
Labels
Comments
Elem doesn't make any more sense for a pointer than for an interface. A pointer doesn't have elements. It's used for interface, pointer, maps, slices, arrays, channels, pretty much everything and that seems reasonable: it's hard enough to remember these method names, having tons of subtly differently named method doesn't bring something better IMO. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: