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: clean up initialization language #20180

Open
alercah opened this issue Apr 30, 2017 · 0 comments
Open

spec: clean up initialization language #20180

alercah opened this issue Apr 30, 2017 · 0 comments
Labels
Documentation NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@alercah
Copy link

alercah commented Apr 30, 2017

The spec provides an value for uninitialized variables of some types, such as "The value of an uninitialized pointer is nil." This text is additionally redundant with the text at the end of the Variables section, which reads "A variable's value is retrieved by referring to the variable in an expression; it is the most recent value assigned to the variable. If a variable has not yet been assigned a value, its value is the zero value for its type."

However, there's an extra wrinkle here. This quoted text refers to assignment, but not to initialization. Initialization is not assignment (although expression initialization follows "the rules for assignments"). So we also need to make clear that expression initialization does count as assignment.

@bradfitz bradfitz added this to the Unplanned milestone Apr 30, 2017
@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants