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

Issue 6211079: code review 6211079: math/big: implement JSON un/marshaling support for Ints (Closed)

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

Description

math/big: implement JSON un/marshaling support for Ints Also: simplified some existing tests. No support for Rats for now because the precision-preserving default notation (fractions of the form a/b) is not a valid JSON value. Fixes issue 3657.

Patch Set 1 #

Patch Set 2 : diff -r 4c05c319570b https://code.google.com/p/go #

Patch Set 3 : diff -r 4c05c319570b https://code.google.com/p/go #

Patch Set 4 : diff -r 4c05c319570b https://code.google.com/p/go #

Patch Set 5 : diff -r 4c05c319570b https://code.google.com/p/go #

Total comments: 1

Patch Set 6 : diff -r 4c05c319570b https://code.google.com/p/go #

Patch Set 7 : diff -r 4c05c319570b https://code.google.com/p/go #

Patch Set 8 : diff -r 4c05c319570b https://code.google.com/p/go #

Patch Set 9 : diff -r 4c05c319570b https://code.google.com/p/go #

Patch Set 10 : diff -r 4c05c319570b https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -46 lines) Patch
M src/pkg/math/big/int.go View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M src/pkg/math/big/int_test.go View 1 2 3 4 5 6 3 chunks +38 lines, -22 lines 0 comments Download
M src/pkg/math/big/rat_test.go View 1 2 3 4 5 6 7 1 chunk +13 lines, -24 lines 0 comments Download

Messages

Total messages: 5
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
12 years, 9 months ago (2012-05-22 22:33:53 UTC) #1
bradfitz
LGTM http://codereview.appspot.com/6211079/diff/8001/src/pkg/math/big/int_test.go File src/pkg/math/big/int_test.go (right): http://codereview.appspot.com/6211079/diff/8001/src/pkg/math/big/int_test.go#newcode1412 src/pkg/math/big/int_test.go:1412: for j := 0; j < 2; j++ ...
12 years, 9 months ago (2012-05-22 22:37:34 UTC) #2
gri
PTAL. Waiting for rsc, in case he has some JSON-related thoughts. - gri On Tue, ...
12 years, 9 months ago (2012-05-22 22:58:19 UTC) #3
rsc
LGTM Nice.
12 years, 9 months ago (2012-05-23 00:18:50 UTC) #4
gri
12 years, 9 months ago (2012-05-23 00:20:52 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=10f594c76fa0 ***

math/big: implement JSON un/marshaling support for Ints

Also: simplified some existing tests.

No support for Rats for now because the precision-preserving
default notation (fractions of the form a/b) is not a valid
JSON value.

Fixes issue 3657.

R=golang-dev, bradfitz, rsc
CC=golang-dev
http://codereview.appspot.com/6211079
Sign in to reply to this message.

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