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

Issue 952041: code review 952041: json: streaming (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 11 months ago by rsc
Modified:
14 years, 11 months ago
Reviewers:
cw
Visibility:
Public.

Description

json: streaming

Patch Set 1 #

Patch Set 2 : code review 952041: json: streaming #

Total comments: 2

Patch Set 3 : code review 952041: json: streaming #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -0 lines) Patch
M src/pkg/json/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/json/stream.go View 1 2 1 chunk +185 lines, -0 lines 1 comment Download
A src/pkg/json/stream_test.go View 1 2 1 chunk +122 lines, -0 lines 0 comments Download

Messages

Total messages: 8
rsc
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 11 months ago (2010-04-27 09:12:50 UTC) #1
rsc
Sorry for the code review storm. This is the last one necessary to finish off ...
14 years, 11 months ago (2010-04-27 09:14:23 UTC) #2
cw
Very nice, it looks very much like the gob APIs at this point. http://codereview.appspot.com/952041/diff/2001/3002 File ...
14 years, 11 months ago (2010-04-27 09:21:45 UTC) #3
r
LGTM this stuff is starting to feel right http://codereview.appspot.com/952041/diff/2001/3002 File src/pkg/json/stream.go (right): http://codereview.appspot.com/952041/diff/2001/3002#newcode28 src/pkg/json/stream.go:28: // ...
14 years, 11 months ago (2010-04-27 16:50:09 UTC) #4
rsc
> http://codereview.appspot.com/952041/diff/2001/3002#newcode176 > src/pkg/json/stream.go:176: func (m *RawMessage) UnmarshalJSON(data > []byte) os.Error { > The JSON ...
14 years, 11 months ago (2010-04-27 17:18:26 UTC) #5
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=80df82b4fd8b *** json: streaming R=r, cw CC=golang-dev http://codereview.appspot.com/952041
14 years, 11 months ago (2010-04-27 17:46:40 UTC) #6
cw
curiouser and curiouser http://codereview.appspot.com/952041/diff/11001/12002 File src/pkg/json/stream.go (right): http://codereview.appspot.com/952041/diff/11001/12002#newcode185 src/pkg/json/stream.go:185: var _ Unmarshaler = (*RawMessage)(nil) compile ...
14 years, 11 months ago (2010-04-27 18:36:43 UTC) #7
rsc
14 years, 11 months ago (2010-04-27 18:38:47 UTC) #8
> http://codereview.appspot.com/952041/diff/11001/12002#newcode185
> src/pkg/json/stream.go:185: var _ Unmarshaler = (*RawMessage)(nil)
> compile time checking for something?
>
> does gc optimize this out?

type checking that statement makes sure that
*RawMessage satisfies Unmarshaler.

and yes.
Sign in to reply to this message.

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