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

Issue 4629062: code review 4629062: io: clarify Read, ReadAt, Copy, Copyn EOF behavior (Closed)

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

Description

io: clarify Read, ReadAt, Copy, Copyn EOF behavior

Patch Set 1 #

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

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

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

Total comments: 8

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

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

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

Messages

Total messages: 15
rsc
Hello golang-dev (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 9 months ago (2011-06-22 19:57:48 UTC) #1
bradfitz
Could you look at the io.Copy and io.Copyn docs where you're in here? When they ...
13 years, 9 months ago (2011-06-22 20:07:05 UTC) #2
rsc
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2011-06-22 20:56:49 UTC) #3
bradfitz
http://codereview.appspot.com/4629062/diff/5003/src/pkg/io/io.go File src/pkg/io/io.go (right): http://codereview.appspot.com/4629062/diff/5003/src/pkg/io/io.go#newcode256 src/pkg/io/io.go:256: // (including os.EOF), so can Copyn. gross. Copyn isn't ...
13 years, 9 months ago (2011-06-22 21:06:10 UTC) #4
bradfitz
(I know this was supposed to be a documentation-only CL, but I'm just shocked at ...
13 years, 9 months ago (2011-06-22 21:18:02 UTC) #5
rsc
> Copyn isn't an interface. We control its implementation and there's > just one. > ...
13 years, 8 months ago (2011-06-22 22:04:43 UTC) #6
iant
FYI http://codereview.appspot.com/4629062/diff/5003/src/pkg/io/io.go File src/pkg/io/io.go (right): http://codereview.appspot.com/4629062/diff/5003/src/pkg/io/io.go#newcode41 src/pkg/io/io.go:41: // successfully reading a n > 0 bytes, ...
13 years, 8 months ago (2011-06-22 22:13:27 UTC) #7
dsymonds
On Thu, Jun 23, 2011 at 8:04 AM, Russ Cox <rsc@golang.org> wrote: >> Copyn isn't ...
13 years, 8 months ago (2011-06-22 22:25:12 UTC) #8
rsc
I don't have time to have this discussion this week. This CL is about documenting ...
13 years, 8 months ago (2011-06-22 22:29:44 UTC) #9
nigeltao
http://codereview.appspot.com/4629062/diff/5003/src/pkg/io/io.go File src/pkg/io/io.go (right): http://codereview.appspot.com/4629062/diff/5003/src/pkg/io/io.go#newcode35 src/pkg/io/io.go:35: // Even if Read returns n < len(p), While ...
13 years, 8 months ago (2011-06-22 22:55:06 UTC) #10
r
LGTM after addressing iant's comments. i agree that we can document what it does separately ...
13 years, 8 months ago (2011-06-22 22:59:08 UTC) #11
dsymonds
LGTM I concur.
13 years, 8 months ago (2011-06-22 23:12:34 UTC) #12
rsc
Hello golang-dev@googlegroups.com, bradfitz@golang.org, iant@golang.org, dsymonds@golang.org, nigeltao@golang.org, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-06-22 23:20:18 UTC) #13
r
LGTM
13 years, 8 months ago (2011-06-22 23:30:25 UTC) #14
rsc
13 years, 8 months ago (2011-06-22 23:33:09 UTC) #15
*** Submitted as http://code.google.com/p/go/source/detail?r=524ffaeede65 ***

io: clarify Read, ReadAt, Copy, Copyn EOF behavior

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

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