]> Cypherpunks repositories - gostls13.git/commit
go spec: follow-up cleanups after communication operator changes
authorRobert Griesemer <gri@golang.org>
Tue, 1 Feb 2011 20:02:49 +0000 (12:02 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 1 Feb 2011 20:02:49 +0000 (12:02 -0800)
commitb50ed022f5d735ee341ebdf15a9a151f4b6e5494
tree60c1289310e21f65725f1aa69fd4af518041d1a3
parentdc9a02fa66acb28795ff3006436bef1753dd90b4
go spec: follow-up cleanups after communication operator changes

These are syntactical changes to better reflect the communication
operator's new status in the language.

- sending to a channel is now done via a send statement
- there is no binary communication operation anymore which
  leads to a reduction of the number of precedence levels
  from 6 to 5 (yeah!)
- small semantic change: since a send operation is not part
  of the expression syntax anymore, a <- send operator is
  binding weaker than any other operator now
- receiving from a channel is done as before via the unary
  receive expression
- communication clauses in select statement now can contain
  send statements or receive expressions

R=rsc, r, iant, ken2, gri1
CC=golang-dev
https://golang.org/cl/3973051
doc/go_spec.html