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

Issue 61180043: code review 61180043: math/big: add support for general encoding interfaces

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by mtj
Modified:
10 years, 2 months ago
Reviewers:
gobot, gri
CC:
gri, cookieo9, bradfitz, mtj1, golang-codereviews
Visibility:
Public.

Description

math/big: add support for general encoding interfaces TextMarshaller and TextUnmarshaller to ease transport of unlimited precision rational numbers. Fixes issue 7287. Consists of encode and decode functions and two test functions, one using JSON and one using XML. Each verifies round trips for integers (rationals with denominator == 1) and for fractional vaues.

Patch Set 1 #

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

Total comments: 1

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

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

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

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

Total comments: 7

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -0 lines) Patch
M src/pkg/math/big/rat.go View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M src/pkg/math/big/rat_test.go View 1 2 3 4 5 6 7 2 chunks +65 lines, -0 lines 0 comments Download

Messages

Total messages: 14
cookieo9
https://codereview.appspot.com/61180043/diff/10002/src/pkg/math/big/rat.go File src/pkg/math/big/rat.go (right): https://codereview.appspot.com/61180043/diff/10002/src/pkg/math/big/rat.go#newcode590 src/pkg/math/big/rat.go:590: func (x *Rat) MarshalJSON() ([]byte, error) { Considering the ...
10 years, 2 months ago (2014-02-09 01:03:57 UTC) #1
mtj
On 2014/02/09 01:03:57, cookieo9 wrote: > https://codereview.appspot.com/61180043/diff/10002/src/pkg/math/big/rat.go > File src/pkg/math/big/rat.go (right): > > https://codereview.appspot.com/61180043/diff/10002/src/pkg/math/big/rat.go#newcode590 > ...
10 years, 2 months ago (2014-02-09 01:47:34 UTC) #2
mtj
Hello gri@golang.org, cookieo9@gmail.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
10 years, 2 months ago (2014-02-09 01:51:48 UTC) #3
bradfitz
s/lacked/add/ so the summary doesn't sound so weak and weird. Or better: "add JSON support ...
10 years, 2 months ago (2014-02-09 02:01:01 UTC) #4
mtj1
I'm taking the "ditch JSON" and "add TextMarshaller" comment to heart. I think we can't ...
10 years, 2 months ago (2014-02-09 02:06:21 UTC) #5
mtj
Hello gri@golang.org, cookieo9@gmail.com, bradfitz@golang.org, mtj@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-09 03:46:44 UTC) #6
gri
Please also update the CL description and add, just so: Fixes issue 7287. Thanks. https://codereview.appspot.com/61180043/diff/80001/src/pkg/math/big/rat.go ...
10 years, 2 months ago (2014-02-10 19:48:15 UTC) #7
mtj
Hello gri@golang.org, cookieo9@gmail.com, bradfitz@golang.org, mtj@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-12 04:48:10 UTC) #8
gri
LGTM Thanks.
10 years, 2 months ago (2014-02-13 04:11:10 UTC) #9
gri
Actually, can you please hg gofmt or gofmt -w $GOROOT/src/pkg/math/big/ and re-upload? Also, please hg ...
10 years, 2 months ago (2014-02-13 04:15:54 UTC) #10
mtj
Hello gri@golang.org, cookieo9@gmail.com, bradfitz@golang.org, mtj@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-13 06:25:55 UTC) #11
gri
LGTM Thanks.
10 years, 2 months ago (2014-02-13 16:41:47 UTC) #12
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=20f12ba1f1fb *** math/big: add support for general encoding interfaces TextMarshaller and TextUnmarshaller ...
10 years, 2 months ago (2014-02-13 16:42:18 UTC) #13
gobot
10 years, 2 months ago (2014-02-13 16:57:01 UTC) #14
This CL appears to have broken the openbsd-amd64-rootbsd builder.
Sign in to reply to this message.

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