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

Issue 2194045: code review 2194045: bytes: add Buffer.UnreadRune, Buffer.UnreadByte (Closed)

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

Description

bytes: add Buffer.UnreadRune, Buffer.UnreadByte

Patch Set 1 #

Patch Set 2 : code review 2194045: bytes: add Buffer.UnreadRune #

Patch Set 3 : code review 2194045: bytes: add Buffer.UnreadRune, Buffer.UnreadByte #

Patch Set 4 : code review 2194045: bytes: add Buffer.UnreadRune, Buffer.UnreadByte #

Patch Set 5 : code review 2194045: bytes: add Buffer.UnreadRune, Buffer.UnreadByte #

Total comments: 22

Patch Set 6 : code review 2194045: bytes: add Buffer.UnreadRune, Buffer.UnreadByte #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -1 line) Patch
M src/pkg/bytes/buffer.go View 1 2 3 4 5 13 chunks +56 lines, -0 lines 0 comments Download
M src/pkg/bytes/buffer_test.go View 1 chunk +16 lines, -1 line 0 comments Download

Messages

Total messages: 23
rog
Hello r (cc: golang-dev@googlegroups.com, rsc), I'd like you to review this change.
14 years, 5 months ago (2010-09-23 11:01:42 UTC) #1
rog
BTW, is there a reason that bytes.Buffer does not implement Seek? On 23 September 2010 ...
14 years, 5 months ago (2010-09-23 11:02:26 UTC) #2
rog
scratch that, it's obvious really. On 23 September 2010 12:02, roger peppe <rogpeppe@gmail.com> wrote: > ...
14 years, 5 months ago (2010-09-23 11:03:12 UTC) #3
r
I'm not sure about this. First, if we have unreadrune there should first be unreadbyte. ...
14 years, 5 months ago (2010-09-23 12:41:45 UTC) #4
rog
On 23 September 2010 13:41, <r@golang.org> wrote: > I'm not sure about this. > > ...
14 years, 5 months ago (2010-09-23 13:16:20 UTC) #5
rog
Hello r (cc: golang-dev@googlegroups.com, rsc), Please take another look.
14 years, 5 months ago (2010-09-23 14:05:59 UTC) #6
rsc
The invariant here is that after Read has caught up with Write, the space can ...
14 years, 5 months ago (2010-09-23 14:34:43 UTC) #7
rog
PTAL On 23 September 2010 15:34, Russ Cox <rsc@golang.org> wrote: > // UnreadByte unreads the ...
14 years, 5 months ago (2010-09-23 16:15:49 UTC) #8
gri
For what it's worth: I am not comfortable with this CL because it requires that ...
14 years, 5 months ago (2010-09-23 16:50:01 UTC) #9
rsc
> BTW, i don't see why UnreadByte should return an error > if the last ...
14 years, 5 months ago (2010-09-23 16:52:17 UTC) #10
rog
On 23 September 2010 17:52, Russ Cox <rsc@golang.org> wrote: >> BTW, i don't see why ...
14 years, 5 months ago (2010-09-23 17:03:26 UTC) #11
rog
On 23 September 2010 17:50, <gri@golang.org> wrote: > For what it's worth: > > I ...
14 years, 5 months ago (2010-09-23 17:18:41 UTC) #12
rsc1
I think being able to fmt.Scan from a bytes.Buffer instead of having to wrap it ...
14 years, 5 months ago (2010-09-23 17:25:28 UTC) #13
gri
On Thu, Sep 23, 2010 at 10:18 AM, roger peppe <rogpeppe@gmail.com> wrote: > On 23 ...
14 years, 5 months ago (2010-09-23 17:43:03 UTC) #14
rog
On 23 September 2010 18:42, Robert Griesemer <gri@golang.org> wrote: > I wouldn't use bufio. UnreadRune ...
14 years, 5 months ago (2010-09-23 18:18:50 UTC) #15
rog
PTAL. http://codereview.appspot.com/2194045/diff/14001/src/pkg/bytes/buffer.go File src/pkg/bytes/buffer.go (right): http://codereview.appspot.com/2194045/diff/14001/src/pkg/bytes/buffer.go#newcode207 src/pkg/bytes/buffer.go:207: b.lastRead = opRead On 2010/09/23 17:25:28, rsc1 wrote: ...
14 years, 5 months ago (2010-09-23 18:25:35 UTC) #16
r
I haven't looked again at this CL, but I was thinking that you could solve ...
14 years, 5 months ago (2010-09-23 20:55:00 UTC) #17
rog
On 23 September 2010 21:54, Rob 'Commander' Pike <r@golang.org> wrote: > I haven't looked again ...
14 years, 5 months ago (2010-09-27 09:13:01 UTC) #18
rsc
Saying something is undefined without enforcement scares me. The lazy implementation makes UnreadRune and UnreadByte ...
14 years, 5 months ago (2010-09-27 14:22:20 UTC) #19
rog
i'll let you sort it out between yourselves :-) On 27 September 2010 15:22, Russ ...
14 years, 5 months ago (2010-09-27 15:20:10 UTC) #20
r2
i agree with russ -rob
14 years, 5 months ago (2010-09-28 18:30:02 UTC) #21
rsc1
LGTM please sync and re-hg mail
14 years, 4 months ago (2010-11-01 20:44:40 UTC) #22
rog
14 years, 3 months ago (2010-12-02 19:24:12 UTC) #23
*** Abandoned ***
Sign in to reply to this message.

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