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

Issue 1536041: code review 1536041: go spec: clean-up and consolidation of spec with implem... (Closed)

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

Description

go spec: clean-up and consolidation of spec with implementation Specifically: - introduced notion of "underlying type" - removed notion of type compatibility - consolidated rules about assignment compatibility in assignment compatibility section - be consistent with specyfing that nil is the value for uninitialized variables that can be nil (this was not specified clearly for pointers, functions, interfaces) - added/fixed various related links throughout - clarify language on conversions

Patch Set 1 #

Patch Set 2 : code review 1536041: go spec: remove notion of "type compatibility" #

Patch Set 3 : code review 1536041: go spec: remove notion of "type compatibility" #

Total comments: 1

Patch Set 4 : code review 1536041: go spec: remove notion of "type compatibility" #

Patch Set 5 : code review 1536041: go spec: remove notion of "type compatibility" #

Patch Set 6 : code review 1536041: go spec: remove notion of "type compatibility" #

Patch Set 7 : code review 1536041: go spec: remove notion of "type compatibility" #

Patch Set 8 : code review 1536041: go spec: remove notion of "type compatibility" #

Total comments: 2

Patch Set 9 : code review 1536041: go spec: clean-up and consolidation of spec with implem... #

Patch Set 10 : code review 1536041: go spec: clean-up and consolidation of spec with implem... #

Patch Set 11 : code review 1536041: go spec: clean-up and consolidation of spec with implem... #

Patch Set 12 : code review 1536041: go spec: clean-up and consolidation of spec with implem... #

Total comments: 2

Patch Set 13 : code review 1536041: go spec: clean-up and consolidation of spec with implem... #

Patch Set 14 : code review 1536041: go spec: clean-up and consolidation of spec with implem... #

Patch Set 15 : code review 1536041: go spec: clean-up and consolidation of spec with implem... #

Total comments: 6

Patch Set 16 : code review 1536041: go spec: clean-up and consolidation of spec with implem... #

Total comments: 1

Patch Set 17 : code review 1536041: go spec: clean-up and consolidation of spec with implem... #

Patch Set 18 : code review 1536041: go spec: clean-up and consolidation of spec with implem... #

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

Messages

Total messages: 30
gri
Hello rsc, r, iant, ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 9 months ago (2010-06-04 01:15:58 UTC) #1
r
http://codereview.appspot.com/1536041/diff/5001/6001 File doc/go_spec.html (right): http://codereview.appspot.com/1536041/diff/5001/6001#newcode1236 doc/go_spec.html:1236: if the corresponding type literals are identical; that is ...
14 years, 9 months ago (2010-06-04 01:25:25 UTC) #2
gri
Hello rsc, r, iant, ken2 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2010-06-04 01:30:37 UTC) #3
rsc1
http://codereview.appspot.com/1536041/diff/20001/21001 File doc/go_spec.html (right): http://codereview.appspot.com/1536041/diff/20001/21001#newcode3256 doc/go_spec.html:3256: If the value is a signed quantity, it is ...
14 years, 9 months ago (2010-06-04 05:32:57 UTC) #4
rsc1
http://codereview.appspot.com/1536041/diff/20001/21001 File doc/go_spec.html (right): http://codereview.appspot.com/1536041/diff/20001/21001#newcode3240 doc/go_spec.html:3240: <code>x</code> is of an unnamed pointer type and type ...
14 years, 9 months ago (2010-06-04 06:39:27 UTC) #5
rsc
I think something like this can be made to mean what we want. (It is ...
14 years, 9 months ago (2010-06-04 07:46:15 UTC) #6
gri
I still find this more complicated then I'd like it to be. Specifically, I still ...
14 years, 9 months ago (2010-06-04 18:43:31 UTC) #7
rsc
On Fri, Jun 4, 2010 at 11:43, Robert Griesemer <gri@golang.org> wrote: > I still find ...
14 years, 9 months ago (2010-06-04 18:54:04 UTC) #8
gri
On Fri, Jun 4, 2010 at 11:53 AM, Russ Cox <rsc@golang.org> wrote: > On Fri, ...
14 years, 9 months ago (2010-06-04 19:00:49 UTC) #9
gri
Hello rsc, r, iant, ken2 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2010-06-04 20:38:09 UTC) #10
r
http://codereview.appspot.com/1536041/diff/33002/2002 File doc/go_spec.html (right): http://codereview.appspot.com/1536041/diff/33002/2002#newcode615 doc/go_spec.html:615: <a href="#Declarations_and_scope">declaration</a>. this is not a clear definition. "perhaps ...
14 years, 9 months ago (2010-06-04 21:53:44 UTC) #11
gri
On Fri, Jun 4, 2010 at 2:53 PM, <r@golang.org> wrote: > > http://codereview.appspot.com/1536041/diff/33002/2002 > File ...
14 years, 9 months ago (2010-06-04 22:32:15 UTC) #12
r2
Understood, but for the purposes of this explanation "undeclared type" is easier to internalize.
14 years, 9 months ago (2010-06-04 22:42:40 UTC) #13
rsc1
http://codereview.appspot.com/1536041/diff/33002/2002 File doc/go_spec.html (right): http://codereview.appspot.com/1536041/diff/33002/2002#newcode615 doc/go_spec.html:615: <a href="#Declarations_and_scope">declaration</a>. > i think the word we want ...
14 years, 9 months ago (2010-06-05 00:22:58 UTC) #14
gri
On Fri, Jun 4, 2010 at 5:22 PM, <rsc@google.com> wrote: > > http://codereview.appspot.com/1536041/diff/33002/2002 > File ...
14 years, 9 months ago (2010-06-05 00:30:52 UTC) #15
gri
On Fri, Jun 4, 2010 at 5:22 PM, <rsc@google.com> wrote: > > http://codereview.appspot.com/1536041/diff/33002/2002 > File ...
14 years, 9 months ago (2010-06-05 00:31:26 UTC) #16
r2
On Jun 4, 2010, at 5:28 PM, Robert Griesemer wrote: > On Fri, Jun 4, ...
14 years, 9 months ago (2010-06-05 00:33:43 UTC) #17
rsc
>>> >>> i think the word we want for named type is declared type. >> ...
14 years, 9 months ago (2010-06-05 00:42:01 UTC) #18
gri
On Fri, Jun 4, 2010 at 5:41 PM, Russ Cox <rsc@golang.org> wrote: > >>> > ...
14 years, 9 months ago (2010-06-05 00:48:30 UTC) #19
gri
On Fri, Jun 4, 2010 at 5:41 PM, Russ Cox <rsc@golang.org> wrote: > >>> > ...
14 years, 9 months ago (2010-06-05 00:49:02 UTC) #20
r2
On Jun 4, 2010, at 5:47 PM, Robert Griesemer wrote: > Agreed - which is ...
14 years, 9 months ago (2010-06-05 02:19:16 UTC) #21
gri
Please have another look: http://codereview.appspot.com/1536041 - clean definition of "underlying type" - Various minor fixes ...
14 years, 9 months ago (2010-06-07 21:51:40 UTC) #22
rsc1
lgtm http://codereview.appspot.com/1536041/diff/20002/45001 File doc/go_spec.html (right): http://codereview.appspot.com/1536041/diff/20002/45001#newcode616 doc/go_spec.html:616: is the underlying type of the type to ...
14 years, 9 months ago (2010-06-07 21:58:41 UTC) #23
r
it's getting close http://codereview.appspot.com/1536041/diff/20002/45001 File doc/go_spec.html (right): http://codereview.appspot.com/1536041/diff/20002/45001#newcode616 doc/go_spec.html:616: is the underlying type of the ...
14 years, 9 months ago (2010-06-07 22:04:05 UTC) #24
gri
On Mon, Jun 7, 2010 at 2:58 PM, <rsc@google.com> wrote: > lgtm > > > ...
14 years, 9 months ago (2010-06-07 22:28:02 UTC) #25
gri
PTAL. - gri On Mon, Jun 7, 2010 at 3:04 PM, <r@golang.org> wrote: > it's ...
14 years, 9 months ago (2010-06-07 22:29:58 UTC) #26
r
http://codereview.appspot.com/1536041/diff/48001/49001 File doc/go_spec.html (right): http://codereview.appspot.com/1536041/diff/48001/49001#newcode616 doc/go_spec.html:616: is the underlying type of the type which <code>T</code> ...
14 years, 9 months ago (2010-06-07 22:35:01 UTC) #27
r
LGTM
14 years, 9 months ago (2010-06-07 22:43:57 UTC) #28
iant
LGTM
14 years, 9 months ago (2010-06-07 22:48:50 UTC) #29
gri
14 years, 9 months ago (2010-06-07 22:49:49 UTC) #30
*** Submitted as http://code.google.com/p/go/source/detail?r=fd33a7545685 ***

go spec: clean-up and consolidation of spec with implementation

Specifically:
- introduced notion of "underlying type"
- removed notion of type compatibility
- consolidated rules about assignment compatibility in
  assignment compatibility section
- be consistent with specyfing that nil is the value
  for uninitialized variables that can be nil (this
  was not specified clearly for pointers, functions, interfaces)
- added/fixed various related links throughout
- clarify language on conversions

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

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