http://codereview.appspot.com/5675053/diff/1016/src/pkg/bytes/reader_test.go File src/pkg/bytes/reader_test.go (right): http://codereview.appspot.com/5675053/diff/1016/src/pkg/bytes/reader_test.go#newcode15 src/pkg/bytes/reader_test.go:15: // Statically verify that *Reader implements all the interfaces ...
12 years, 2 months ago
(2012-02-15 00:48:23 UTC)
#4
http://codereview.appspot.com/5675053/diff/1016/src/pkg/bytes/reader_test.go
File src/pkg/bytes/reader_test.go (right):
http://codereview.appspot.com/5675053/diff/1016/src/pkg/bytes/reader_test.go#...
src/pkg/bytes/reader_test.go:15: // Statically verify that *Reader implements
all the interfaces
On 2012/02/15 00:45:11, adg wrote:
> I'd put this next to the doc comment so it's easier to keep them in sync (not
> that it wil change much, I guess).
>
> I don't think this generates any code, so there's no real advantage to putting
> this in the test.
I've heard objections. It's a slippery slope that leads to Java & people
thinking they have to write those lines.
I actually half expect it be proposed that I delete these, even in _test.go.
But at least here people can't easily see these on golang.org when clicking
through to the source code, learning bad practices.
On 15 February 2012 11:49, Brad Fitzpatrick <bradfitz@golang.org> wrote: > On Wed, Feb 15, 2012 ...
12 years, 2 months ago
(2012-02-15 00:51:44 UTC)
#7
On 15 February 2012 11:49, Brad Fitzpatrick <bradfitz@golang.org> wrote:
> On Wed, Feb 15, 2012 at 11:45 AM, <adg@golang.org> wrote:
>>
>> What about mime/multipart/formdata.go?
>
>
> Added.
>
> Anything else?
A pony. And find me a date.
LGTM - I'll defer to the wisdom of others on the question of interface
satisfaction.
Issue 5675053: code review 5675053: bytes,strings: make *Reader implement io.ReaderAt
(Closed)
Created 12 years, 2 months ago by bradfitz
Modified 12 years, 2 months ago
Reviewers:
Base URL:
Comments: 4