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

Issue 1912042: code review 1912042: bufio: introduce Peek and PeekByte. (Closed)

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

Description

bufio: introduce Peek. I'll leave whether or not this obsoletes UnreadByte for a future CL.

Patch Set 1 #

Patch Set 2 : code review 1912042: bufio: introduce Peek and PeekByte. #

Total comments: 3

Patch Set 3 : code review 1912042: bufio: introduce Peek and PeekByte. #

Total comments: 12

Patch Set 4 : code review 1912042: bufio: introduce Peek. #

Patch Set 5 : code review 1912042: bufio: introduce Peek. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -8 lines) Patch
M src/pkg/bufio/bufio.go View 1 2 3 5 chunks +32 lines, -8 lines 0 comments Download
M src/pkg/bufio/bufio_test.go View 1 2 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 11
nigeltao
Hello r, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 7 months ago (2010-08-02 08:10:01 UTC) #1
r
we'll need PeekRune too
14 years, 7 months ago (2010-08-03 00:22:34 UTC) #2
rsc1
a few design things http://codereview.appspot.com/1912042/diff/2001/3001 File src/pkg/bufio/bufio.go (right): http://codereview.appspot.com/1912042/diff/2001/3001#newcode119 src/pkg/bufio/bufio.go:119: m, err := io.ReadFull(b.rd, b.buf[b.w:b.r+n]) ...
14 years, 7 months ago (2010-08-03 03:47:52 UTC) #3
nigeltao_gnome
On 3 August 2010 13:47, <rsc@google.com> wrote: > I think it would look like > ...
14 years, 7 months ago (2010-08-03 06:24:27 UTC) #4
rsc1
LGTM leaving for r http://codereview.appspot.com/1912042/diff/8001/7002 File src/pkg/bufio/bufio.go (right): http://codereview.appspot.com/1912042/diff/8001/7002#newcode31 src/pkg/bufio/bufio.go:31: ErrNegativeIndex os.Error = &Error{"bufio: negative ...
14 years, 7 months ago (2010-08-03 06:51:50 UTC) #5
nigeltao
http://codereview.appspot.com/1912042/diff/8001/7002 File src/pkg/bufio/bufio.go (right): http://codereview.appspot.com/1912042/diff/8001/7002#newcode31 src/pkg/bufio/bufio.go:31: ErrNegativeIndex os.Error = &Error{"bufio: negative index"} On 2010/08/03 06:51:50, ...
14 years, 7 months ago (2010-08-03 07:19:11 UTC) #6
r
LGTM
14 years, 7 months ago (2010-08-03 07:45:01 UTC) #7
rsc1
LGTM
14 years, 7 months ago (2010-08-03 19:34:17 UTC) #8
r2
LGTM but update the CL description: there is no PeekByte
14 years, 7 months ago (2010-08-03 19:45:32 UTC) #9
r2
never mind, i see it's already been updated.
14 years, 7 months ago (2010-08-03 19:45:53 UTC) #10
nigeltao
14 years, 7 months ago (2010-08-03 23:44:09 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=d90dd90f3aa3 ***

bufio: introduce Peek.

I'll leave whether or not this obsoletes UnreadByte for a future CL.

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

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