Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1774)

Issue 3973051: code review 3973051: go spec: follow-up cleanups after communication operato... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by gri
Modified:
13 years, 2 months ago
Reviewers:
CC:
rsc, r, iant, ken2, gri1, golang-dev
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : code review 3973051: go spec: follow-up cleanups after communication operato... #

Patch Set 3 : code review 3973051: go spec: follow-up cleanups after communication operato... #

Patch Set 4 : code review 3973051: go spec: follow-up cleanups after communication operato... #

Total comments: 6

Patch Set 5 : code review 3973051: go spec: follow-up cleanups after communication operato... #

Total comments: 2

Patch Set 6 : code review 3973051: go spec: follow-up cleanups after communication operato... #

Total comments: 2

Patch Set 7 : code review 3973051: go spec: follow-up cleanups after communication operato... #

Total comments: 1

Patch Set 8 : code review 3973051: go spec: follow-up cleanups after communication operato... #

Patch Set 9 : code review 3973051: go spec: follow-up cleanups after communication operato... #

Patch Set 10 : code review 3973051: go spec: follow-up cleanups after communication operato... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -65 lines) Patch
M doc/go_spec.html View 1 2 3 4 5 6 7 8 9 11 chunks +66 lines, -65 lines 0 comments Download

Messages

Total messages: 12
gri
Hello rsc, r, iant, ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change.
13 years, 2 months ago (2011-02-01 00:31:23 UTC) #1
gri
Follow-up: Actually there is a small semantic change here because now a send operation - ...
13 years, 2 months ago (2011-02-01 00:40:28 UTC) #2
gri
Follow-up: Actually there is a small semantic change here because now a send operation - ...
13 years, 2 months ago (2011-02-01 00:41:46 UTC) #3
rsc
http://codereview.appspot.com/3973051/diff/9002/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/3973051/diff/9002/doc/go_spec.html#newcode3532 doc/go_spec.html:3532: A send statement sends a value (on the right) ...
13 years, 2 months ago (2011-02-01 13:00:36 UTC) #4
rsc
On Mon, Jan 31, 2011 at 19:40, Robert Griesemer <gri@golang.org> wrote: > Follow-up: Actually there ...
13 years, 2 months ago (2011-02-01 13:10:03 UTC) #5
gri1
PTAL http://codereview.appspot.com/3973051/diff/9002/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/3973051/diff/9002/doc/go_spec.html#newcode3532 doc/go_spec.html:3532: A send statement sends a value (on the ...
13 years, 2 months ago (2011-02-01 17:17:08 UTC) #6
rsc
LGTM http://codereview.appspot.com/3973051/diff/11002/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/3973051/diff/11002/doc/go_spec.html#newcode3513 doc/go_spec.html:3513: Function calls, method calls, and channel operations s/channel/receive/
13 years, 2 months ago (2011-02-01 17:47:07 UTC) #7
gri1
http://codereview.appspot.com/3973051/diff/11002/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/3973051/diff/11002/doc/go_spec.html#newcode3513 doc/go_spec.html:3513: Function calls, method calls, and channel operations On 2011/02/01 ...
13 years, 2 months ago (2011-02-01 17:51:28 UTC) #8
r
LGTM http://codereview.appspot.com/3973051/diff/14001/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/3973051/diff/14001/doc/go_spec.html#newcode4087 doc/go_spec.html:4087: For all the send and receive statements in ...
13 years, 2 months ago (2011-02-01 19:31:29 UTC) #9
gri1
PTAL Also, adjusted the syntax for RecvStmt so that x = <- a + b ...
13 years, 2 months ago (2011-02-01 19:56:42 UTC) #10
rsc
LGTM http://codereview.appspot.com/3973051/diff/7002/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/3973051/diff/7002/doc/go_spec.html#newcode4088 doc/go_spec.html:4088: RecvExpr must be a <a href="#Receive_operator"> receive operation</a>. ...
13 years, 2 months ago (2011-02-01 19:58:54 UTC) #11
gri
13 years, 2 months ago (2011-02-01 20:02:51 UTC) #12
*** Submitted as http://code.google.com/p/go/source/detail?r=5c69e7c1eedf ***

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
http://codereview.appspot.com/3973051
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b