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

Issue 11403043: code review 11403043: io: let SectionReader seek past the end; document Seeke... (Closed)

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

Description

io: let SectionReader seek past the end; document Seeker semantics more Be consistent with os.File, strings.Reader, bytes.Reader, etc, which all allow seeks past the end.

Patch Set 1 #

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

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

Total comments: 1

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

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

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

Messages

Total messages: 11
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 9 months ago (2013-07-17 00:59:42 UTC) #1
r
What's the back story here? Who needs to seek past the end, and why? Without ...
10 years, 9 months ago (2013-07-17 03:13:39 UTC) #2
bradfitz
$ man 2 lseek The lseek() function allows the file offset to be set beyond ...
10 years, 9 months ago (2013-07-17 03:19:03 UTC) #3
r
You're answering what I asked but not what I meant to ask. My question is ...
10 years, 9 months ago (2013-07-17 04:23:32 UTC) #4
r
wow, nice typos. "rea fien" is how a scotsman spells "are fine"
10 years, 9 months ago (2013-07-17 04:23:59 UTC) #5
bradfitz
If you jump past the end of it, it just returns EOF on a subsequent ...
10 years, 9 months ago (2013-07-17 04:43:53 UTC) #6
r
https://codereview.appspot.com/11403043/diff/6001/src/pkg/io/io.go File src/pkg/io/io.go (right): https://codereview.appspot.com/11403043/diff/6001/src/pkg/io/io.go#newcode97 src/pkg/io/io.go:97: // error. I'm really not sure about this. I'm ...
10 years, 9 months ago (2013-07-17 05:27:57 UTC) #7
bradfitz
PTAL I like that wording. On Wed, Jul 17, 2013 at 3:27 PM, <r@golang.org> wrote: ...
10 years, 9 months ago (2013-07-17 08:00:52 UTC) #8
bradfitz
Hello golang-dev@googlegroups.com, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 9 months ago (2013-07-17 08:00:52 UTC) #9
r
LGTM
10 years, 9 months ago (2013-07-18 02:53:47 UTC) #10
bradfitz
10 years, 9 months ago (2013-07-18 03:03:37 UTC) #11
*** Submitted as https://code.google.com/p/go/source/detail?r=f2b6ec47a9e5 ***

io: let SectionReader seek past the end; document Seeker semantics more

Be consistent with os.File, strings.Reader, bytes.Reader, etc,
which all allow seeks past the end.

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

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