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

Comments

@alercah
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.