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

Issue 4552056: code review 4552056: big: make Int and Rat implement fmt.Scanner (Closed)

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

Description

big: make Int and Rat implement fmt.Scanner Also add Len method to strings.Reader

Patch Set 1 #

Patch Set 2 : diff -r dbfa667d4da2 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r dbfa667d4da2 https://go.googlecode.com/hg/ #

Total comments: 5

Patch Set 4 : diff -r dbfa667d4da2 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r dbfa667d4da2 https://go.googlecode.com/hg/ #

Total comments: 16

Patch Set 6 : diff -r 26a2b651a7a9 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 26a2b651a7a9 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 26a2b651a7a9 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 9 : diff -r f1519be2d0e9 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r f1519be2d0e9 https://go.googlecode.com/hg/ #

Total comments: 5

Patch Set 11 : diff -r 3b02534fe256 https://go.googlecode.com/hg/ #

Patch Set 12 : diff -r 3b02534fe256 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -55 lines) Patch
M src/pkg/big/int.go View 1 2 3 4 5 6 7 8 9 10 5 chunks +62 lines, -17 lines 0 comments Download
M src/pkg/big/int_test.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +43 lines, -0 lines 0 comments Download
M src/pkg/big/nat.go View 1 2 3 4 5 6 7 8 9 10 2 chunks +57 lines, -26 lines 0 comments Download
M src/pkg/big/nat_test.go View 1 2 3 4 5 6 7 8 9 10 4 chunks +56 lines, -8 lines 0 comments Download
M src/pkg/big/rat.go View 1 2 3 4 5 3 chunks +29 lines, -3 lines 0 comments Download
M src/pkg/big/rat_test.go View 1 2 3 2 chunks +28 lines, -1 line 0 comments Download

Messages

Total messages: 16
eds
Hello gri@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 11 months ago (2011-05-20 21:37:43 UTC) #1
eds
I didn't add tests for Rat.Scan since it's pretty simple and would essentially just be ...
12 years, 11 months ago (2011-05-20 21:39:28 UTC) #2
gri
Looks pretty good. It would be nice if the scanners would actually accept the longest ...
12 years, 11 months ago (2011-05-20 22:31:46 UTC) #3
eds
I've uploaded a new patch, but it turned out kind of ugly after adding the ...
12 years, 11 months ago (2011-05-21 23:12:16 UTC) #4
gri
This is not too bad, I think. It would be great if the rational scanner ...
12 years, 11 months ago (2011-05-24 00:44:51 UTC) #5
eds
Hello gri@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-05-24 07:35:00 UTC) #6
eds
All comments addressed, but please see one response below. http://codereview.appspot.com/4552056/diff/12001/src/pkg/big/nat.go File src/pkg/big/nat.go (right): http://codereview.appspot.com/4552056/diff/12001/src/pkg/big/nat.go#newcode627 src/pkg/big/nat.go:627: ...
12 years, 11 months ago (2011-05-24 07:35:38 UTC) #7
gri
Getting there. Regarding your comment (use of UnreadRun): I believe you are correct. I think ...
12 years, 11 months ago (2011-05-24 17:10:47 UTC) #8
eds
On Wed, May 25, 2011 at 5:10 AM, <gri@golang.org> wrote: > I think the UnreadRune ...
12 years, 11 months ago (2011-05-24 20:19:13 UTC) #9
gri
Ah, I missed that. This is unfortunate. scan could return an additional argument (the next ...
12 years, 11 months ago (2011-05-24 22:21:02 UTC) #10
eds
On Wed, May 25, 2011 at 10:20 AM, Robert Griesemer <gri@golang.org> wrote: > scan could ...
12 years, 11 months ago (2011-05-24 22:43:07 UTC) #11
eds
Hello gri@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-05-27 10:14:24 UTC) #12
gri
Looking pretty good. It would be nice to have a few more test cases; and ...
12 years, 11 months ago (2011-05-27 21:35:36 UTC) #13
eds
Hello gri@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2011-05-27 21:59:02 UTC) #14
gri
LGTM thanks for doing this. - gri On Fri, May 27, 2011 at 2:59 PM, ...
12 years, 11 months ago (2011-05-27 22:47:14 UTC) #15
gri
12 years, 11 months ago (2011-05-27 22:51:04 UTC) #16
*** Submitted as http://code.google.com/p/go/source/detail?r=d1eb313a0668 ***

big: make Int and Rat implement fmt.Scanner

R=gri
CC=golang-dev
http://codereview.appspot.com/4552056

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

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