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

Issue 43610043: code review 43610043: net: reimplement toLower to not depend on strings (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by 0intro
Modified:
11 years, 3 months ago
Reviewers:
r, bradfitz
CC:
golang-dev, bradfitz, jas
Visibility:
Public.

Description

net: reimplement toLower to not depend on strings

Patch Set 1 #

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

Total comments: 2

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -2 lines) Patch
M src/pkg/net/lookup_plan9.go View 1 2 2 chunks +24 lines, -2 lines 1 comment Download

Messages

Total messages: 10
0intro
Hello golang-dev (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 3 months ago (2013-12-17 21:47:05 UTC) #1
r
https://codereview.appspot.com/43610043/diff/30001/src/pkg/net/lookup_plan9.go File src/pkg/net/lookup_plan9.go (right): https://codereview.appspot.com/43610043/diff/30001/src/pkg/net/lookup_plan9.go#newcode72 src/pkg/net/lookup_plan9.go:72: func toLower(in string) string { needs a comment to ...
11 years, 3 months ago (2013-12-17 21:49:05 UTC) #2
bradfitz
Also, I would avoid the allocation and just reuse 'in' if it's already all lowercase. ...
11 years, 3 months ago (2013-12-17 21:49:45 UTC) #3
bradfitz
allocations, plural On Tue, Dec 17, 2013 at 1:49 PM, Brad Fitzpatrick <bradfitz@golang.org>wrote: > Also, ...
11 years, 3 months ago (2013-12-17 21:49:58 UTC) #4
0intro
https://codereview.appspot.com/43610043/diff/30001/src/pkg/net/lookup_plan9.go File src/pkg/net/lookup_plan9.go (right): https://codereview.appspot.com/43610043/diff/30001/src/pkg/net/lookup_plan9.go#newcode72 src/pkg/net/lookup_plan9.go:72: func toLower(in string) string { On 2013/12/17 21:49:05, r ...
11 years, 3 months ago (2013-12-17 22:04:52 UTC) #5
bradfitz
LGTM
11 years, 3 months ago (2013-12-17 22:18:27 UTC) #6
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=ba99d4f5b6a2 *** net: reimplement toLower to not depend on strings R=golang-dev, r, ...
11 years, 3 months ago (2013-12-17 22:19:14 UTC) #7
r
https://codereview.appspot.com/43610043/diff/50001/src/pkg/net/lookup_plan9.go File src/pkg/net/lookup_plan9.go (right): https://codereview.appspot.com/43610043/diff/50001/src/pkg/net/lookup_plan9.go#newcode93 src/pkg/net/lookup_plan9.go:93: } this is fine but it could involve less ...
11 years, 3 months ago (2013-12-17 22:21:35 UTC) #8
0intro
Thanks. Your version does indeed look better. It seems Brad already submitted the change however. ...
11 years, 3 months ago (2013-12-17 22:36:10 UTC) #9
r
11 years, 3 months ago (2013-12-17 22:51:42 UTC) #10
sure, go for it. thanks.

-rob
Sign in to reply to this message.

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