summaryrefslogtreecommitdiff
path: root/favicon.ico
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2014-09-30 11:44:29 -0700
committerRobert Griesemer <gri@golang.org>2014-09-30 11:44:29 -0700
commitf484994d7ada7e0988b1e125b12b0d91a1a31d43 (patch)
tree65321d859ef55024c6cdb76e89575eafa827af45 /favicon.ico
parent04055b67c5bba9aef1ecc6278b8be3f59d10384a (diff)
downloadgo-f484994d7ada7e0988b1e125b12b0d91a1a31d43.tar.gz
spec: clarify variable declaration type rules
Not a language change. Several inaccuracies were fixed: 1) A variable declaration may declare more than just one variable. 2) Variable initialization follows the rules of assignments, including n:1 assignments. The existing wording implied a 1:1 or n:n rule and generally was somewhat unspecific. 3) The rules for variable declarations with no types and untyped initialization expressions had minor holes (issue 8088). 4) Clarified the special cases of assignments of untyped values (we don't just have untyped constants, but also untyped bools, e.g. from comparisons). The new wording is more direct. To that end, introduced the notion of an untyped constant's "default type" so that the same concept doesn't have to be repeatedly introduced. Fixes issue 8088. LGTM=iant, r, rsc R=r, rsc, iant, ken CC=golang-codereviews https://codereview.appspot.com/142320043
Diffstat (limited to 'favicon.ico')
0 files changed, 0 insertions, 0 deletions