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

Issue 6760045: code review 6760045: io: add ByteWriter interface (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by bradfitz
Modified:
12 years, 5 months ago
Reviewers:
CC:
golang-dev, dsymonds, nigeltao, rsc, r
Visibility:
Public.

Description

io: add ByteWriter interface API change.

Patch Set 1 #

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

Patch Set 3 : diff -r d0ca00912d1c https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 4 : diff -r d81bcf447d65 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 5 : diff -r 57f70857cf91 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 959dee37d03d https://go.googlecode.com/hg/ #

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

Messages

Total messages: 13
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 5 months ago (2012-10-25 00:45:31 UTC) #1
bradfitz
API proposal. Mostly for symmetry with io.WriteString, but also because I've now seen this a ...
12 years, 5 months ago (2012-10-25 00:47:02 UTC) #2
dsymonds
LGTM https://codereview.appspot.com/6760045/diff/3002/src/pkg/io/io.go File src/pkg/io/io.go (right): https://codereview.appspot.com/6760045/diff/3002/src/pkg/io/io.go#newcode259 src/pkg/io/io.go:259: // If w already implements a WriteByte method, ...
12 years, 5 months ago (2012-10-25 00:48:55 UTC) #3
nigeltao
I am afraid that this will encourage inefficient code that repeatedly calls io.WriteByte. Instead, programs ...
12 years, 5 months ago (2012-10-25 04:31:59 UTC) #4
bradfitz
On Wed, Oct 24, 2012 at 9:31 PM, <nigeltao@golang.org> wrote: > I am afraid that ...
12 years, 5 months ago (2012-10-25 15:43:00 UTC) #5
rsc
No. This is the wrong thing to do. You don't want to do this on ...
12 years, 5 months ago (2012-10-25 21:37:03 UTC) #6
rsc
NOT LGTM
12 years, 5 months ago (2012-10-25 21:37:13 UTC) #7
bradfitz
Hello golang-dev@googlegroups.com, dsymonds@golang.org, nigeltao@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2012-10-29 10:44:01 UTC) #8
r
http://codereview.appspot.com/6760045/diff/13001/src/pkg/io/io.go File src/pkg/io/io.go (right): http://codereview.appspot.com/6760045/diff/13001/src/pkg/io/io.go#newcode223 src/pkg/io/io.go:223: // are buffered in-memory. two weasel-word adverbs in two ...
12 years, 5 months ago (2012-10-29 21:14:15 UTC) #9
bradfitz
That's fine. I was trying to discourage dumb implementations. But whatever. On Oct 29, 2012 ...
12 years, 5 months ago (2012-10-29 21:19:05 UTC) #10
bradfitz
Hello golang-dev@googlegroups.com, dsymonds@golang.org, nigeltao@golang.org, rsc@golang.org, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 5 months ago (2012-10-29 21:55:08 UTC) #11
nigeltao
LGTM.
12 years, 5 months ago (2012-10-29 22:47:36 UTC) #12
bradfitz
12 years, 5 months ago (2012-10-30 09:51:36 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=64292110c35b ***

io: add ByteWriter interface

API change.

R=golang-dev, dsymonds, nigeltao, rsc, r
CC=golang-dev
http://codereview.appspot.com/6760045
Sign in to reply to this message.

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