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

Issue 132150043: code review 132150043: io: document that Readers and Writers must not retain b... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by bradfitz
Modified:
10 years, 7 months ago
Reviewers:
gobot, rsc, gri
CC:
golang-codereviews, gri, r, rsc
Visibility:
Public.

Description

io: document that Readers and Writers must not retain buffers There are both many callers and many implementations of these interfaces, so make the contract explicit. Callers generally assume this, and at least the standard library and other implementations obey this, but it's never stated explicitly, making it somewhat risky to assume.

Patch Set 1 #

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

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

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

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

Messages

Total messages: 5
bradfitz
Hello golang-codereviews@googlegroups.com (cc: gri@golang.org, r@golang.org, rsc@golang.org), I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 7 months ago (2014-08-25 23:09:13 UTC) #1
gri
LGTM but wait for rsc
10 years, 7 months ago (2014-08-25 23:31:46 UTC) #2
rsc
LGTM
10 years, 7 months ago (2014-08-26 04:30:24 UTC) #3
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=bfbcddc8da9f *** io: document that Readers and Writers must not retain buffers ...
10 years, 7 months ago (2014-08-26 04:38:34 UTC) #4
gobot
10 years, 7 months ago (2014-08-26 04:52:51 UTC) #5
Message was sent while issue was closed.
This CL appears to have broken the darwin-amd64 builder.
See http://build.golang.org/log/e920a979f38b0bc9c836385f3877fe428ae24a08
Sign in to reply to this message.

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