]> Cypherpunks repositories - gostls13.git/commit
spec: channel operations are restricted by the channel direction
authorRobert Griesemer <gri@golang.org>
Mon, 3 Dec 2012 22:23:41 +0000 (14:23 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 3 Dec 2012 22:23:41 +0000 (14:23 -0800)
commitcc3f21cefeb24c214487d89ebe50818c08e37d88
tree7364e833bb51bea06096e095847df419da6a5130
parent3167c12eb2bea4c96ccb0308159925d5f4e8cd21
spec: channel operations are restricted by the channel direction

Also:
- 'for' statements with a range clause do not accept send-only
   channels
- '_, _ = range ch' is not equivalent to "_ = range ch" if ch
   is a channel (rewriting the latter to the former leads to
   an invalid range clause).

These clarifications document the status quo.

R=rsc, r, iant, ken
CC=golang-dev
https://golang.org/cl/6874053
doc/go_spec.html