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).
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
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
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 21:19:38, r wrote:
> order here is in out in. better to go in in out or out in in. plus no parens.
>
> Except for calls of <a href="#Built-in_functions">built-in functions</a>.
> function and method <a href="#Calls">calls</a> and <a
href="#Receive_operator">
> receive operations</a> may appear in statement context.
>
Done.
http://codereview.appspot.com/6498138/diff/5001/doc/go_spec.html#newcode4818
doc/go_spec.html:4818: functions), or <a href="#Receive_operator">receive
operations</a>; in this
On 2012/09/17 21:19:38, r wrote:
> "does not contain ... excluding" is hard to parse, plus the rewrite above
would
> help. no parens.
Done.
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
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
*** Submitted as http://code.google.com/p/go/source/detail?r=eb75b492bf41 *** spec: clarify expression statements Function and method calls are valid ...
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
Issue 6498138: code review 6498138: spec: clarify expression statements
(Closed)
Created 12 years, 6 months ago by gri
Modified 12 years, 6 months ago
Reviewers:
Base URL:
Comments: 11