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

Issue 94030045: code review 94030045: spec: several clarifications to language on channels (Closed)

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

Description

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 issue 7785.

Patch Set 1 #

Patch Set 2 : diff -r 2e591e82a8c8 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 2e591e82a8c8 https://code.google.com/p/go/ #

Patch Set 4 : diff -r dcf1fdbf4686 https://code.google.com/p/go/ #

Patch Set 5 : diff -r dcf1fdbf4686 https://code.google.com/p/go/ #

Patch Set 6 : diff -r dcf1fdbf4686 https://code.google.com/p/go/ #

Patch Set 7 : diff -r dcf1fdbf4686 https://code.google.com/p/go/ #

Total comments: 6

Patch Set 8 : diff -r d797b2316601 https://code.google.com/p/go/ #

Total comments: 6

Patch Set 9 : diff -r d797b2316601 https://code.google.com/p/go/ #

Total comments: 7

Patch Set 10 : diff -r a792685e097b https://code.google.com/p/go/ #

Patch Set 11 : diff -r a792685e097b https://code.google.com/p/go/ #

Patch Set 12 : diff -r a792685e097b https://code.google.com/p/go/ #

Patch Set 13 : diff -r a792685e097b https://code.google.com/p/go/ #

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

Messages

Total messages: 10
gri
Hello r@golang.org, rsc@golang.org, iant@golang.org, ken@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to ...
10 years ago (2014-05-05 21:41:14 UTC) #1
r
https://codereview.appspot.com/94030045/diff/120001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/94030045/diff/120001/doc/go_spec.html#newcode1335 doc/go_spec.html:1335: <i>asynchronous</i>: communication operations succeed without blocking if the buffer ...
9 years, 12 months ago (2014-05-06 11:45:20 UTC) #2
gri
PTAL https://codereview.appspot.com/94030045/diff/120001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/94030045/diff/120001/doc/go_spec.html#newcode1335 doc/go_spec.html:1335: <i>asynchronous</i>: communication operations succeed without blocking if the ...
9 years, 12 months ago (2014-05-06 17:20:26 UTC) #3
iant
https://codereview.appspot.com/94030045/diff/140001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/94030045/diff/140001/doc/go_spec.html#newcode1284 doc/go_spec.html:1284: <a href="#Send_statements">sending</a> or s/or/and/ ? https://codereview.appspot.com/94030045/diff/140001/doc/go_spec.html#newcode1356 doc/go_spec.html:1356: <a href="#Close"><code>close</code></a> ...
9 years, 12 months ago (2014-05-06 18:08:07 UTC) #4
gri
PTAL https://codereview.appspot.com/94030045/diff/140001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/94030045/diff/140001/doc/go_spec.html#newcode1284 doc/go_spec.html:1284: <a href="#Send_statements">sending</a> or On 2014/05/06 18:08:07, iant wrote: ...
9 years, 12 months ago (2014-05-06 18:22:17 UTC) #5
rsc
LGTM https://codereview.appspot.com/94030045/diff/110002/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/94030045/diff/110002/doc/go_spec.html#newcode1297 doc/go_spec.html:1297: <i>bi-directional</i>. i think bidirectional is usually not hyphenated ...
9 years, 12 months ago (2014-05-07 02:54:42 UTC) #6
gri
PTAL r, iant https://codereview.appspot.com/94030045/diff/110002/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/94030045/diff/110002/doc/go_spec.html#newcode1297 doc/go_spec.html:1297: <i>bi-directional</i>. On 2014/05/07 02:54:41, rsc wrote: ...
9 years, 12 months ago (2014-05-07 16:02:18 UTC) #7
r
LGTM
9 years, 12 months ago (2014-05-07 16:10:34 UTC) #8
iant
LGTM
9 years, 12 months ago (2014-05-07 17:34:57 UTC) #9
gri
9 years, 12 months ago (2014-05-07 17:40:42 UTC) #10
*** Submitted as https://code.google.com/p/go/source/detail?r=1ce8d70162aa ***

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 issue 7785.

LGTM=rsc, r, iant
R=r, rsc, iant, ken
CC=golang-codereviews
https://codereview.appspot.com/94030045
Sign in to reply to this message.

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