Skip to content
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: Imprecise wording regarding assignments to variables of interface type #17991

Closed
go101 opened this issue Nov 20, 2016 · 2 comments
Closed

Comments

@go101
Copy link

go101 commented Nov 20, 2016

In Go spec https://golang.org/ref/spec#Interface_types:

..., A variable of interface type can store a value of any type with a method set that is any superset of the interface. ...

Here, if the "any type" is an interface type, then it should be said as "... store a dynamic value ...".

@robpike
Copy link
Contributor

robpike commented Nov 20, 2016

It's tricky, because there's a difference between "store" and "be assigned".

Perhaps it should be s/any/any non-interface/.

@griesemer griesemer changed the title Inaccurate Wording in Go spec spec: Imprecise wording regarding assignments to variables of interface type Nov 21, 2016
@griesemer
Copy link
Contributor

Duplicate of #5288.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants