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

Issue 673042: code review 673042: Go spec: map indexing never raises a runtime exception; (Closed)

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

Description

Go spec: map indexing never raises a runtime exception. Also: Actual map key must be assignment-compatible with formal map key type. Fixes issue 357.

Patch Set 1 #

Patch Set 2 : code review 673042: Go spec: map indexing never raises a runtime exception; #

Patch Set 3 : code review 673042: Go spec: map indexing never raises a runtime exception; #

Total comments: 5

Patch Set 4 : code review 673042: Go spec: map indexing never raises a runtime exception #

Total comments: 1

Patch Set 5 : code review 673042: Go spec: map indexing never raises a runtime exception. #

Patch Set 6 : code review 673042: Go spec: map indexing never raises a runtime exception. #

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

Messages

Total messages: 11
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change.
14 years, 1 month ago (2010-03-23 01:18:19 UTC) #1
rsc1
http://codereview.appspot.com/673042/diff/5001/3002 File doc/go_spec.html (right): http://codereview.appspot.com/673042/diff/5001/3002#newcode2311 doc/go_spec.html:2311: Field selectors automatically dereference pointers. maybe this text or ...
14 years, 1 month ago (2010-03-23 01:25:01 UTC) #2
r
LGTM http://codereview.appspot.com/673042/diff/5001/3002 File doc/go_spec.html (right): http://codereview.appspot.com/673042/diff/5001/3002#newcode2311 doc/go_spec.html:2311: Field selectors automatically dereference pointers. This is a ...
14 years, 1 month ago (2010-03-23 04:39:28 UTC) #3
r2
i did not mean to say LGTM. why does this keep happening to me? i ...
14 years, 1 month ago (2010-03-23 04:42:20 UTC) #4
iant
FYI http://codereview.appspot.com/673042/diff/5001/3002 File doc/go_spec.html (right): http://codereview.appspot.com/673042/diff/5001/3002#newcode2321 doc/go_spec.html:2321: contains a field <code>f</code>, <code>x.f</code> is a shortcut ...
14 years, 1 month ago (2010-03-23 14:05:41 UTC) #5
gri
PTAL. I have removed the changes applying to auto-dereferencing for now. This is only the ...
14 years, 1 month ago (2010-03-23 20:17:29 UTC) #6
rsc1
http://codereview.appspot.com/673042/diff/13001/14001 File doc/go_spec.html (right): http://codereview.appspot.com/673042/diff/13001/14001#newcode2421 doc/go_spec.html:2421: <a href="#Assignment_compatibility">assignment compatible</a> This is a spec change too. ...
14 years, 1 month ago (2010-03-23 20:24:54 UTC) #7
r2
LGTM
14 years, 1 month ago (2010-03-23 20:52:33 UTC) #8
r2
On Mar 23, 2010, at 1:24 PM, rsc@google.com wrote: > > > Again, I'm in ...
14 years, 1 month ago (2010-03-23 20:54:01 UTC) #9
rsc
LGTM
14 years, 1 month ago (2010-03-23 20:55:05 UTC) #10
gri
14 years, 1 month ago (2010-03-23 21:01:56 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=12b597435d21 ***

Go spec: map indexing never raises a runtime exception.
Also: Actual map key must be assignment-compatible with
formal map key type.

Fixes issue 357.

R=r, iant, rsc, ken2
CC=golang-dev
http://codereview.appspot.com/673042

http://codereview.appspot.com/673042/diff/5001/3002
File doc/go_spec.html (right):

http://codereview.appspot.com/673042/diff/5001/3002#newcode2420
doc/go_spec.html:2420: <li><code>x</code>'s type must be compatible with the key
type of <code>M</code></li>
On 2010/03/23 04:39:29, r wrote:
> what kind of compatible?

Done.
Sign in to reply to this message.

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