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

Issue 7387044: code review 7387044: strconv, fmt: clarify behavior of CanBackquote and "%#q". (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by minux1
Modified:
11 years, 1 month ago
Reviewers:
CC:
golang-dev, bradfitz, r, rsc
Visibility:
Public.

Description

strconv, fmt: clarify behavior of CanBackquote and "%#q". Fixes issue 4858.

Patch Set 1 #

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

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

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

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

Total comments: 2

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

Total comments: 3

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

Total comments: 2

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M src/pkg/fmt/doc.go View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/strconv/quote.go View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 13
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 2 months ago (2013-02-20 17:09:26 UTC) #1
bradfitz
https://codereview.appspot.com/7387044/diff/11001/src/pkg/fmt/doc.go File src/pkg/fmt/doc.go (right): https://codereview.appspot.com/7387044/diff/11001/src/pkg/fmt/doc.go#newcode77 src/pkg/fmt/doc.go:77: for %q, print a raw (backquoted) string if strconv.CanBackquote() ...
11 years, 2 months ago (2013-02-20 18:20:25 UTC) #2
minux1
PTAL. On 2013/02/20 18:20:25, bradfitz wrote: > https://codereview.appspot.com/7387044/diff/11001/src/pkg/fmt/doc.go#newcode77 > src/pkg/fmt/doc.go:77: for %q, print a raw ...
11 years, 2 months ago (2013-02-20 18:49:12 UTC) #3
r
https://codereview.appspot.com/7387044/diff/14004/src/pkg/strconv/quote.go File src/pkg/strconv/quote.go (right): https://codereview.appspot.com/7387044/diff/14004/src/pkg/strconv/quote.go#newcode145 src/pkg/strconv/quote.go:145: // will return false for any multiline strings so ...
11 years, 2 months ago (2013-02-20 20:24:34 UTC) #4
rsc
https://codereview.appspot.com/7387044/diff/14004/src/pkg/strconv/quote.go File src/pkg/strconv/quote.go (right): https://codereview.appspot.com/7387044/diff/14004/src/pkg/strconv/quote.go#newcode145 src/pkg/strconv/quote.go:145: // will return false for any multiline strings so ...
11 years, 2 months ago (2013-02-20 20:49:40 UTC) #5
minux1
PTAL.
11 years, 1 month ago (2013-02-23 10:45:15 UTC) #6
r
https://codereview.appspot.com/7387044/diff/10003/src/pkg/strconv/quote.go File src/pkg/strconv/quote.go (right): https://codereview.appspot.com/7387044/diff/10003/src/pkg/strconv/quote.go#newcode145 src/pkg/strconv/quote.go:145: // '\n') is fine within backquotes, CanBackquote s/is/are/ https://codereview.appspot.com/7387044/diff/10003/src/pkg/strconv/quote.go#newcode146 ...
11 years, 1 month ago (2013-02-23 16:55:41 UTC) #7
minux1
PTAL. On Sun, Feb 24, 2013 at 12:55 AM, <r@golang.org> wrote: > https://codereview.appspot.**com/7387044/diff/10003/src/** > pkg/strconv/quote.go#**newcode146<https://codereview.appspot.com/7387044/diff/10003/src/pkg/strconv/quote.go#newcode146> ...
11 years, 1 month ago (2013-02-23 17:00:13 UTC) #8
minux1
On Sun, Feb 24, 2013 at 12:59 AM, minux <minux.ma@gmail.com> wrote: > PTAL. > > ...
11 years, 1 month ago (2013-02-23 17:01:11 UTC) #9
r
LGTM but check with rsc too
11 years, 1 month ago (2013-02-23 18:14:32 UTC) #10
rsc
LGTM I don't know whether space is a control character. I would have guessed not.
11 years, 1 month ago (2013-02-25 21:52:22 UTC) #11
r
whether it is or not, the meaning seems clear.
11 years, 1 month ago (2013-02-25 21:53:05 UTC) #12
minux1
11 years, 1 month ago (2013-02-25 22:34:17 UTC) #13
*** Submitted as https://code.google.com/p/go/source/detail?r=8e4103edc064 ***

strconv, fmt: clarify behavior of CanBackquote and "%#q".
Fixes issue 4858.

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

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