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

Issue 6498138: code review 6498138: spec: clarify expression statements (Closed)

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

Description

spec: clarify expression statements Function and method calls are valid expression statements, but calling certain built-in functions is not permitted. Enumerate the built-ins. Also: unsafe.Offsetof permits parenthesized selectors as arguments. This is simply documenting existing compiler behavior (both gc and gccgo agree).

Patch Set 1 #

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

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

Total comments: 4

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

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

Total comments: 6

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

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

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

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

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

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

Total comments: 1

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

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

Patch Set 14 : diff -r 65c87ef9aae6 https://code.google.com/p/go #

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

Messages

Total messages: 16
gri
Hello r@golang.org, rsc@golang.org, iant@golang.org, ken@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to ...
12 years, 6 months ago (2012-09-17 21:15:30 UTC) #1
gri
Hello r@golang.org, rsc@golang.org, iant@golang.org, ken@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 6 months ago (2012-09-17 21:19:37 UTC) #2
r
http://codereview.appspot.com/6498138/diff/5001/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/6498138/diff/5001/doc/go_spec.html#newcode3803 doc/go_spec.html:3803: and <a href="#Receive_operator">receive operations</a> order here is in out ...
12 years, 6 months ago (2012-09-17 21:19:38 UTC) #3
gri
PTAL. - gri http://codereview.appspot.com/6498138/diff/5001/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/6498138/diff/5001/doc/go_spec.html#newcode3803 doc/go_spec.html:3803: and <a href="#Receive_operator">receive operations</a> On 2012/09/17 ...
12 years, 6 months ago (2012-09-17 21:35:24 UTC) #4
iant
https://codereview.appspot.com/6498138/diff/5003/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/6498138/diff/5003/doc/go_spec.html#newcode4817 doc/go_spec.html:4817: Odd place for a blank line. https://codereview.appspot.com/6498138/diff/5003/doc/go_spec.html#newcode4818 doc/go_spec.html:4818: and ...
12 years, 6 months ago (2012-09-17 21:55:24 UTC) #5
gri
PTAL https://codereview.appspot.com/6498138/diff/5003/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/6498138/diff/5003/doc/go_spec.html#newcode4817 doc/go_spec.html:4817: On 2012/09/17 21:55:24, iant wrote: > Odd place ...
12 years, 6 months ago (2012-09-17 22:05:26 UTC) #6
r
CL description needs refinement
12 years, 6 months ago (2012-09-17 22:39:05 UTC) #7
r
LGTM make an issue for later consideration to clean this up, maybe in the TODO ...
12 years, 6 months ago (2012-09-17 22:40:43 UTC) #8
gri
On 2012/09/17 22:39:05, r wrote: > CL description needs refinement PTAL.
12 years, 6 months ago (2012-09-17 22:43:55 UTC) #9
gri
Hello r@golang.org, rsc@golang.org, iant@golang.org, ken@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 6 months ago (2012-09-18 16:52:41 UTC) #10
iant
LGTM https://codereview.appspot.com/6498138/diff/17001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/6498138/diff/17001/doc/go_spec.html#newcode3815 doc/go_spec.html:3815: append cap complex imag len make new real ...
12 years, 6 months ago (2012-09-18 16:57:08 UTC) #11
gri
Hello r@golang.org, rsc@golang.org, iant@golang.org, ken@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 6 months ago (2012-09-18 17:19:39 UTC) #12
iant
LGTM
12 years, 6 months ago (2012-09-18 17:30:01 UTC) #13
r
LGTM
12 years, 6 months ago (2012-09-18 17:32:39 UTC) #14
rsc
LGTM
12 years, 6 months ago (2012-09-18 18:24:32 UTC) #15
gri
12 years, 6 months ago (2012-09-18 18:26:01 UTC) #16
*** Submitted as http://code.google.com/p/go/source/detail?r=eb75b492bf41 ***

spec: clarify expression statements

Function and method calls are valid expression statements,
but calling certain built-in functions is not permitted.
Enumerate the built-ins.

Also: unsafe.Offsetof permits parenthesized selectors as
arguments.

This is simply documenting existing compiler behavior
(both gc and gccgo agree).

R=r, rsc, iant, ken
CC=golang-dev
http://codereview.appspot.com/6498138
Sign in to reply to this message.

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