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

Issue 91230043: code review 91230043: spec: more precise description of select statement (Closed)

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

Description

spec: more precise description of select statement - use previously defined terms (with links) throughout - specify evaluation order more precisely (in particular, the evaluation time of rhs expressions in receive cases was not specified) - added extra example case Not a language change. Description matches observed behavior of code compiled with gc and gccgo. Fixes issue 7669.

Patch Set 1 #

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

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

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

Total comments: 8

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

Total comments: 4

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

Total comments: 8

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

Total comments: 11

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

Total comments: 2

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

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

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

Messages

Total messages: 15
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, 10 months ago (2014-05-07 20:55:00 UTC) #1
iant
https://codereview.appspot.com/91230043/diff/60001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/91230043/diff/60001/doc/go_spec.html#newcode4883 doc/go_spec.html:4883: <a href="#Receive_operator">receive operations</a> or Here you say "receive operations" ...
10 years, 10 months ago (2014-05-07 21:10:38 UTC) #2
gri
PTAL https://codereview.appspot.com/91230043/diff/60001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/91230043/diff/60001/doc/go_spec.html#newcode4883 doc/go_spec.html:4883: <a href="#Receive_operator">receive operations</a> or On 2014/05/07 21:10:38, iant ...
10 years, 10 months ago (2014-05-07 21:31:55 UTC) #3
iant
LGTM
10 years, 10 months ago (2014-05-07 21:44:52 UTC) #4
josharian
https://codereview.appspot.com/91230043/diff/60002/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/91230043/diff/60002/doc/go_spec.html#newcode4968 doc/go_spec.html:4968: case a[f()] = <-c4: s/</&lt;/ https://codereview.appspot.com/91230043/diff/60002/doc/go_spec.html#newcode4970 doc/go_spec.html:4970: // case ...
10 years, 10 months ago (2014-05-07 23:02:53 UTC) #5
gri
PTAL https://codereview.appspot.com/91230043/diff/60002/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/91230043/diff/60002/doc/go_spec.html#newcode4968 doc/go_spec.html:4968: case a[f()] = <-c4: On 2014/05/07 23:02:52, josharian ...
10 years, 10 months ago (2014-05-07 23:34:25 UTC) #6
rsc
https://codereview.appspot.com/91230043/diff/80001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/91230043/diff/80001/doc/go_spec.html#newcode4925 doc/go_spec.html:4925: After excluding any <code>nil</code> channels from this result set, ...
10 years, 10 months ago (2014-05-08 14:14:25 UTC) #7
gri
PTAL https://codereview.appspot.com/91230043/diff/80001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/91230043/diff/80001/doc/go_spec.html#newcode4925 doc/go_spec.html:4925: After excluding any <code>nil</code> channels from this result ...
10 years, 10 months ago (2014-05-08 19:52:38 UTC) #8
r
https://codereview.appspot.com/91230043/diff/100001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/91230043/diff/100001/doc/go_spec.html#newcode4921 doc/go_spec.html:4921: Expressions on the left-hand side of a RecvExpr are ...
10 years, 10 months ago (2014-05-13 22:14:34 UTC) #9
gri
PTAL https://codereview.appspot.com/91230043/diff/100001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/91230043/diff/100001/doc/go_spec.html#newcode4921 doc/go_spec.html:4921: Expressions on the left-hand side of a RecvExpr ...
10 years, 10 months ago (2014-05-13 22:25:42 UTC) #10
r
LGTM https://codereview.appspot.com/91230043/diff/120001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/91230043/diff/120001/doc/go_spec.html#newcode4930 doc/go_spec.html:4930: one of the communications can proceed. s/one/at least ...
10 years, 10 months ago (2014-05-13 22:57:14 UTC) #11
gri
PTAL. rsc? https://codereview.appspot.com/91230043/diff/120001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/91230043/diff/120001/doc/go_spec.html#newcode4930 doc/go_spec.html:4930: one of the communications can proceed. On ...
10 years, 10 months ago (2014-05-13 22:58:54 UTC) #12
r
LGTM
10 years, 10 months ago (2014-05-14 02:47:52 UTC) #13
rsc
LGTM
10 years, 10 months ago (2014-05-14 18:38:23 UTC) #14
gri
10 years, 10 months ago (2014-05-14 18:47:20 UTC) #15
*** Submitted as https://code.google.com/p/go/source/detail?r=c0c00145e2d3 ***

spec: more precise description of select statement

- use previously defined terms (with links) throughout
- specify evaluation order more precisely (in particular,
  the evaluation time of rhs expressions in receive cases
  was not specified)
- added extra example case

Not a language change.

Description matches observed behavior of code compiled
with gc and gccgo.

Fixes issue 7669.

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

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