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

Issue 872041: code review 872041: json: use panic/recover to handle errors in Marshal (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by adg
Modified:
15 years ago
Reviewers:
CC:
r, gri, golang-dev
Visibility:
Public.

Description

json: use panic/recover to handle errors in Marshal

Patch Set 1 #

Patch Set 2 : code review 872041: json: use panic/recover to handle errors in Marshal #

Total comments: 4

Patch Set 3 : code review 872041: json: use panic/recover to handle errors in Marshal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -36 lines) Patch
M src/pkg/json/struct.go View 1 2 4 chunks +21 lines, -36 lines 0 comments Download

Messages

Total messages: 6
adg
Hello r, gri (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years ago (2010-04-01 00:00:04 UTC) #1
gri
LGTM but wait for rsc On Wed, Mar 31, 2010 at 5:00 PM, <adg@golang.org> wrote: ...
15 years ago (2010-04-01 00:03:16 UTC) #2
r
http://codereview.appspot.com/872041/diff/2001/3001 File src/pkg/json/struct.go (right): http://codereview.appspot.com/872041/diff/2001/3001#newcode462 src/pkg/json/struct.go:462: } if it's not a *MarshalError, what should happen? ...
15 years ago (2010-04-01 00:05:51 UTC) #3
r
http://codereview.appspot.com/872041/diff/2001/3001 File src/pkg/json/struct.go (right): http://codereview.appspot.com/872041/diff/2001/3001#newcode462 src/pkg/json/struct.go:462: } never mind, i see that it will panic.
15 years ago (2010-04-01 00:07:28 UTC) #4
rsc1
LGTM with the simplified code the blank lines are no longer necessary, and now it ...
15 years ago (2010-04-01 00:16:48 UTC) #5
adg
15 years ago (2010-04-01 00:19:40 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=dad56a994ab3 ***

json: use panic/recover to handle errors in Marshal

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

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