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

Issue 4589047: code review 4589047: fmt: debugging formats for characters: %+q %#U (Closed)

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

Description

fmt: debugging formats for characters: %+q %#U %+q uses strconv.Quote[Rune]ToASCII, guaranteeing ASCII-only output. %#U a quoted character if the rune is printable: 'x'=U+0078; otherwise it's as before: U+000A.

Patch Set 1 #

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -4 lines) Patch
M src/pkg/fmt/doc.go View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/pkg/fmt/fmt_test.go View 1 3 chunks +9 lines, -0 lines 0 comments Download
M src/pkg/fmt/format.go View 1 6 chunks +32 lines, -2 lines 0 comments Download
M src/pkg/fmt/print.go View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 5
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
15 years, 4 months ago (2011-06-10 06:17:16 UTC) #1
gri
LGTM http://codereview.appspot.com/4589047/diff/1/src/pkg/fmt/fmt_test.go File src/pkg/fmt/fmt_test.go (right): http://codereview.appspot.com/4589047/diff/1/src/pkg/fmt/fmt_test.go#newcode198 src/pkg/fmt/fmt_test.go:198: {"%#U", '\u263a', `'☺'=U+263A`}, I would prefer if %#U ...
15 years, 4 months ago (2011-06-10 17:06:55 UTC) #2
rsc
LGTM The = jumbles things a bit. It seems like you're trying to avoid a ...
15 years, 4 months ago (2011-06-10 17:37:07 UTC) #3
r
*** Submitted as http://code.google.com/p/go/source/detail?r=cba21717c2a8 *** fmt: debugging formats for characters: %+q %#U %+q uses strconv.Quote[Rune]ToASCII, ...
15 years, 4 months ago (2011-06-11 00:03:10 UTC) #4
r2
15 years, 4 months ago (2011-06-11 00:04:05 UTC) #5
i tried both, went back and forth. i liked the parens but they're visually
noisier and take up more space, so i went with cleaner and parenless.

-rob

Sign in to reply to this message.

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