]> Cypherpunks repositories - gostls13.git/commit
spec: clarify default "true" condition/tag in for/switch statements
authorRobert Griesemer <gri@golang.org>
Tue, 25 Feb 2014 17:13:37 +0000 (09:13 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 25 Feb 2014 17:13:37 +0000 (09:13 -0800)
commitab26623182bb94e1b29668d86b5ee387991926fe
tree7c3dbf2ed70c103860127283d54f1b8eddf259ce
parent5b35dc0f6f0ff0a96edd8f8460911273bced073a
spec: clarify default "true" condition/tag in for/switch statements

An absent condition/tag in for and switch statements is equivalent
to the predeclared constant true; not simply the expression true
(which might lead to a locally defined true).

Not a language change.

Fixes #7404.

LGTM=iant, r
R=r, iant, rsc, ken
CC=golang-codereviews
https://golang.org/cl/68150046
doc/go_spec.html