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

Issue 66860046: code review 66860046: spec: clarify what is considered a function call for le... (Closed)

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

Description

spec: clarify what is considered a function call for len/cap special case gccgo considers built-in function calls returning a constant not as function call (issue 7386) go/types considers any call (regular or built-in) as a function call The wording and examples clarify that only "function calls" that are issued at run-time (and thus do not result in a constant result) are considered function calls in this case. gc is inconsistent (issue 7385) gccgo already interprets the spec accordingly and issue 7386 is moot. go/types considers all calls (constant or not) as function calls (issue 7457). Fixes issue 7387. Fixes issue 7386.

Patch Set 1 #

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

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

Total comments: 1

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

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

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

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

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

Messages

Total messages: 12
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 ...
11 years, 9 months ago (2014-02-22 00:08:39 UTC) #1
r
LGTM but of course wait for others https://codereview.appspot.com/66860046/diff/40001/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/66860046/diff/40001/doc/go_spec.html#newcode3 doc/go_spec.html:3: "Subtitle": "Version ...
11 years, 9 months ago (2014-02-22 00:11:48 UTC) #2
iant
The gccgo behaviour seems correct to me. But I'm OK with this change. It's not ...
11 years, 9 months ago (2014-02-24 05:52:26 UTC) #3
rsc
It seems a bit confusing to me that an expression can be both a function ...
11 years, 9 months ago (2014-03-04 01:07:30 UTC) #4
gri
I'm fine with the gccgo interpretation, and you're example (c3 vs c4) is compelling. I'll ...
11 years, 9 months ago (2014-03-04 01:19:13 UTC) #5
gri
Hello r@golang.org, rsc@golang.org, iant@golang.org, ken@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 9 months ago (2014-03-04 01:49:23 UTC) #6
rsc
LGTM but wait for r, iant
11 years, 9 months ago (2014-03-04 02:00:39 UTC) #7
r
LGTM
11 years, 9 months ago (2014-03-04 02:19:23 UTC) #8
iant
LGTM In CL description, s/mute/moot/.
11 years, 9 months ago (2014-03-04 02:33:57 UTC) #9
r
Don't point that moot at me, Moriarty.
11 years, 9 months ago (2014-03-04 02:41:25 UTC) #10
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=2b66d388d1af *** spec: clarify what is considered a function call for len/cap ...
11 years, 9 months ago (2014-03-04 04:07:36 UTC) #11
gobot
11 years, 9 months ago (2014-03-04 04:40:41 UTC) #12
Message was sent while issue was closed.
This CL appears to have broken the darwin-amd64-race-cheney builder.
Sign in to reply to this message.

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