]> Cypherpunks repositories - gostls13.git/commit
spec: several clarifications to language on channels
authorRobert Griesemer <gri@golang.org>
Wed, 7 May 2014 17:40:39 +0000 (10:40 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 7 May 2014 17:40:39 +0000 (10:40 -0700)
commit97aa90d251f6f2a951d01b7d1033bc7a42bf6f69
tree3b9735c667c01f61c5eb8cd2e6a1995987523b24
parentdbe5f88804ad974a8c98d67421c9aac302873359
spec: several clarifications to language on channels

- A channel may be used between any number of goroutines,
  not just two.
- Replace "passing a value" (which is not further defined)
  by "sending and receiving a value".
- Made syntax production more symmetric.
- Talk about unbuffered channels before buffered channels.
- Clarify what the comma,ok receive values mean (issue 7785).

Not a language change.

Fixes #7785.

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