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

Issue 1687047: code review 1687047: spec: len(x) only constant if x is constant (Closed)

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

Description

spec: restrict when len(x) is constant

Patch Set 1 #

Patch Set 2 : code review 1687047: spec: len(x) only constant if x is constant #

Patch Set 3 : code review 1687047: spec: len(x) only constant if x is constant #

Patch Set 4 : code review 1687047: spec: len(x) only constant if x is constant #

Total comments: 2

Patch Set 5 : code review 1687047: spec: len(x) only constant if x is constant #

Total comments: 1

Patch Set 6 : code review 1687047: spec: len(x) only constant if x is constant #

Patch Set 7 : code review 1687047: spec: restrict when len(x) is constant #

Total comments: 1

Patch Set 8 : code review 1687047: spec: restrict when len(x) is constant #

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

Messages

Total messages: 14
rsc
Hello gri, iant, ken, r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 10 months ago (2010-07-01 21:42:10 UTC) #1
rsc1
-yuri, +ken
14 years, 10 months ago (2010-07-01 21:44:47 UTC) #2
rsc
Hello gri, iant, ken2, r (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 10 months ago (2010-07-01 23:17:32 UTC) #3
r2
seems good. gri would say "denoting" for "naming" in the new paragraph. -rob
14 years, 10 months ago (2010-07-01 23:23:09 UTC) #4
rsc
done On Thu, Jul 1, 2010 at 16:23, Rob 'Commander' Pike <r@google.com> wrote: > seems ...
14 years, 10 months ago (2010-07-01 23:26:10 UTC) #5
gri
fyi http://codereview.appspot.com/1687047/diff/11001/12001 File doc/go_spec.html (right): http://codereview.appspot.com/1687047/diff/11001/12001#newcode533 doc/go_spec.html:533: <code>cap</code> or <code>len</code> applied to a some expressions ...
14 years, 10 months ago (2010-07-01 23:34:06 UTC) #6
rsc
ptal > http://codereview.appspot.com/1687047/diff/11001/12001#newcode533 > doc/go_spec.html:533: <code>cap</code> or <code>len</code> applied to a > some expressions of ...
14 years, 10 months ago (2010-07-01 23:37:31 UTC) #7
iant
LGTM
14 years, 10 months ago (2010-07-02 00:04:46 UTC) #8
gri
http://codereview.appspot.com/1687047/diff/17001/18001 File doc/go_spec.html (right): http://codereview.appspot.com/1687047/diff/17001/18001#newcode4392 doc/go_spec.html:4392: denoting an array. I thought we also allowed pointers?
14 years, 10 months ago (2010-07-02 00:14:49 UTC) #9
rsc
whoops; fixed. On Thu, Jul 1, 2010 at 17:14, <gri@golang.org> wrote: > > http://codereview.appspot.com/1687047/diff/17001/18001 > ...
14 years, 10 months ago (2010-07-02 00:15:48 UTC) #10
gri
LGTM http://codereview.appspot.com/1687047/diff/25001/26001 File doc/go_spec.html (right): http://codereview.appspot.com/1687047/diff/25001/26001#newcode4391 doc/go_spec.html:4391: denoting an array or pointer to array. Should ...
14 years, 10 months ago (2010-07-02 00:21:46 UTC) #11
rsc
> Should one say something like: > > (even if the pointer is nil). > ...
14 years, 10 months ago (2010-07-02 00:34:25 UTC) #12
r2
LGTM Maybe add to last paragraph: Otherwise invocations of len and cap are not constant.
14 years, 10 months ago (2010-07-02 00:36:57 UTC) #13
rsc
14 years, 10 months ago (2010-07-02 00:49:50 UTC) #14
*** Submitted as http://code.google.com/p/go/source/detail?r=932ad7138e12 ***

spec: restrict when len(x) is constant

R=gri, iant, ken2, r
CC=golang-dev
http://codereview.appspot.com/1687047
Sign in to reply to this message.

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