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

Issue 1973043: code review 1973043: fmt/print: honor Formatter in Print, Println. (Closed)

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

Description

fmt/print: honor Formatter in Print, Println. Rearrange code to clarify handling of %T, Formatter, GoStringer, and Stringer.

Patch Set 1 #

Patch Set 2 : code review 1973043: fmt/print: honor Formatter in Print, Println. #

Total comments: 1

Patch Set 3 : code review 1973043: fmt/print: honor Formatter in Print, Println. #

Patch Set 4 : code review 1973043: fmt/print: honor Formatter in Print, Println. #

Total comments: 2

Patch Set 5 : code review 1973043: fmt/print: honor Formatter in Print, Println. #

Patch Set 6 : code review 1973043: fmt/print: honor Formatter in Print, Println. #

Patch Set 7 : code review 1973043: fmt/print: honor Formatter in Print, Println. #

Patch Set 8 : code review 1973043: fmt/print: honor Formatter in Print, Println. #

Total comments: 1

Patch Set 9 : code review 1973043: fmt/print: honor Formatter in Print, Println. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -46 lines) Patch
M src/pkg/fmt/fmt_test.go View 1 2 8 3 chunks +45 lines, -0 lines 0 comments Download
M src/pkg/fmt/print.go View 1 2 3 4 5 6 7 8 3 chunks +38 lines, -46 lines 0 comments Download

Messages

Total messages: 12
r
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years ago (2010-08-13 03:42:41 UTC) #1
rsc
I think the check belongs in printField rather than the two places it is now. ...
15 years ago (2010-08-13 03:47:07 UTC) #2
r2
PTAL
15 years ago (2010-08-13 03:58:27 UTC) #3
rsc1
http://codereview.appspot.com/1973043/diff/5001/6002 File src/pkg/fmt/print.go (right): http://codereview.appspot.com/1973043/diff/5001/6002#newcode499 src/pkg/fmt/print.go:499: // Stringer? I think this is converging on something ...
15 years ago (2010-08-13 04:10:14 UTC) #4
r
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
15 years ago (2010-08-13 05:43:19 UTC) #5
rsc1
still thinking about Stringer but can get this out of the way http://codereview.appspot.com/1973043/diff/13001/14002 File src/pkg/fmt/print.go ...
15 years ago (2010-08-13 06:34:46 UTC) #6
r2
On Aug 13, 2010, at 4:34 PM, rsc@google.com wrote: > still thinking about Stringer but ...
15 years ago (2010-08-13 06:39:38 UTC) #7
r2
On Aug 13, 2010, at 4:34 PM, rsc@google.com wrote: > still thinking about Stringer but ...
15 years ago (2010-08-13 06:42:30 UTC) #8
rsc1
http://codereview.appspot.com/1973043/diff/13001/14002 File src/pkg/fmt/print.go (right): http://codereview.appspot.com/1973043/diff/13001/14002#newcode496 src/pkg/fmt/print.go:496: // Special processing considerations. One more suggestion: move the ...
15 years ago (2010-08-13 06:52:50 UTC) #9
r2
On Aug 13, 2010, at 4:52 PM, rsc@google.com wrote: > > http://codereview.appspot.com/1973043/diff/13001/14002 > File src/pkg/fmt/print.go ...
15 years ago (2010-08-13 07:13:43 UTC) #10
rsc1
LGTM http://codereview.appspot.com/1973043/diff/7003/29002 File src/pkg/fmt/print.go (right): http://codereview.appspot.com/1973043/diff/7003/29002#newcode497 src/pkg/fmt/print.go:497: if verb == 'v' { verb == 'v' ...
15 years ago (2010-08-13 07:17:50 UTC) #11
r
15 years ago (2010-08-13 07:26:40 UTC) #12
*** Submitted as http://code.google.com/p/go/source/detail?r=58cc2828bfd2 ***

fmt/print: honor Formatter in Print, Println.
Rearrange code to clarify handling of %T, Formatter, GoStringer, and Stringer.

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

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