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

Issue 3302042: code review 3302042: Removed bytes.Add and bytes.AddByte; we now have 'append'. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by Kyle C
Modified:
14 years, 3 months ago
Reviewers:
CC:
golang-dev, r, r2
Visibility:
Public.

Description

Removed bytes.Add and bytes.AddByte; we now have 'append'. Changed all uses of bytes.Add (aside from those testing bytes.Add) to append(a, b...). Also ran "gofmt -s" and made use of copy([]byte, string) in the fasta benchmark.

Patch Set 1 #

Patch Set 2 : code review 3302042: Changed all uses of bytes.Add (aside from those testing... #

Patch Set 3 : code review 3302042: Changed all uses of bytes.Add (aside from those testing... #

Total comments: 2

Patch Set 4 : code review 3302042: Removed bytes.Add and bytes.AddByte; we now have 'append'. #

Patch Set 5 : code review 3302042: Removed bytes.Add and bytes.AddByte; we now have 'append'. #

Patch Set 6 : code review 3302042: Removed bytes.Add and bytes.AddByte; we now have 'append'. #

Patch Set 7 : code review 3302042: Removed bytes.Add and bytes.AddByte; we now have 'append'. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -118 lines) Patch
M doc/effective_go.html View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/bytes/bytes.go View 1 2 3 1 chunk +0 lines, -42 lines 0 comments Download
M src/pkg/bytes/bytes_test.go View 1 chunk +0 lines, -39 lines 0 comments Download
M src/pkg/crypto/tls/conn.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/json/scanner_test.go View 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/json/stream.go View 1 2 chunks +1 line, -2 lines 0 comments Download
M src/pkg/net/textproto/reader.go View 2 chunks +2 lines, -4 lines 0 comments Download
M src/pkg/regexp/regexp.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/xml/read.go View 1 chunk +2 lines, -2 lines 0 comments Download
M test/bench/fasta.go View 5 chunks +22 lines, -25 lines 0 comments Download

Messages

Total messages: 12
Kyle C
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 3 months ago (2010-12-01 05:41:59 UTC) #1
r
http://codereview.appspot.com/3302042/diff/5001/src/pkg/bytes/bytes.go File src/pkg/bytes/bytes.go (right): http://codereview.appspot.com/3302042/diff/5001/src/pkg/bytes/bytes.go#newcode558 src/pkg/bytes/bytes.go:558: func Add(s, t []byte) []byte { // TODO you ...
14 years, 3 months ago (2010-12-01 18:13:57 UTC) #2
Kyle C
http://codereview.appspot.com/3302042/diff/5001/src/pkg/bytes/bytes.go File src/pkg/bytes/bytes.go (right): http://codereview.appspot.com/3302042/diff/5001/src/pkg/bytes/bytes.go#newcode558 src/pkg/bytes/bytes.go:558: func Add(s, t []byte) []byte { // TODO On ...
14 years, 3 months ago (2010-12-01 18:30:31 UTC) #3
r2
On Dec 1, 2010, at 10:30 AM, consalus@gmail.com wrote: > > http://codereview.appspot.com/3302042/diff/5001/src/pkg/bytes/bytes.go > File src/pkg/bytes/bytes.go ...
14 years, 3 months ago (2010-12-01 18:31:16 UTC) #4
Kyle C
Hello golang-dev@googlegroups.com, r, r2 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 3 months ago (2010-12-01 18:51:47 UTC) #5
r
LGTM
14 years, 3 months ago (2010-12-01 18:54:27 UTC) #6
r2
looks like you didn't run all.bash. please run that, update the cl, and let me ...
14 years, 3 months ago (2010-12-01 18:56:15 UTC) #7
Kyle C
Hm. Thought I ran it twice. I'll run it once again for good measure. On ...
14 years, 3 months ago (2010-12-01 19:14:53 UTC) #8
Kyle C
Hello golang-dev@googlegroups.com, r, r2 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 3 months ago (2010-12-01 19:15:09 UTC) #9
r2
On Dec 1, 2010, at 11:14 AM, consalus@gmail.com wrote: > Hm. Thought I ran it ...
14 years, 3 months ago (2010-12-01 19:22:30 UTC) #10
Kyle C
Bah. You're right. Sorry. Forgot to add "bytes_test.go". Fixed, uploaded. I also updated effective_go.html to ...
14 years, 3 months ago (2010-12-01 19:51:49 UTC) #11
r
14 years, 3 months ago (2010-12-01 19:59:20 UTC) #12
*** Submitted as http://code.google.com/p/go/source/detail?r=9f9d87beb02c ***

Removed bytes.Add and bytes.AddByte; we now have 'append'.
Changed all uses of bytes.Add (aside from those testing bytes.Add) to append(a,
b...).
Also ran "gofmt -s" and made use of copy([]byte, string) in the fasta benchmark.

R=golang-dev, r, r2
CC=golang-dev
http://codereview.appspot.com/3302042

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

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