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

Issue 4964067: code review 4964067: path/filepath: Simplify Walk interface (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by niemeyer
Modified:
12 years, 8 months ago
Reviewers:
r, gustavo, rsc
CC:
golang-dev, gri, r2
Visibility:
Public.

Description

path/filepath: Simplify Walk interface The last argument of filepath.Walk was removed, and the Visitor interface now contains an Error method that is called on errors. Fixes issue 2237.

Patch Set 1 #

Patch Set 2 : code review 4964067: path/filepath: Simplify Walk interface #

Patch Set 3 : diff -r 2d8706ce68b4 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 2d8706ce68b4 https://go.googlecode.com/hg/ #

Total comments: 2

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

Patch Set 6 : diff -r 2d8706ce68b4 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -40 lines) Patch
M src/cmd/gofix/main.go View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M src/cmd/gofmt/gofmt.go View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M src/cmd/govet/govet.go View 1 2 1 chunk +11 lines, -7 lines 0 comments Download
M src/pkg/path/filepath/path.go View 1 2 3 4 5 3 chunks +9 lines, -15 lines 0 comments Download
M src/pkg/path/filepath/path_test.go View 1 2 3 4 3 chunks +15 lines, -16 lines 0 comments Download

Messages

Total messages: 16
niemeyer
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 8 months ago (2011-09-07 20:53:20 UTC) #1
gri
You beat me to it. Looks pretty good, but I have a couple of comments. ...
12 years, 8 months ago (2011-09-07 21:05:06 UTC) #2
niemeyer
> You beat me to it. Sorry for jumping ahead. Want to use the new ...
12 years, 8 months ago (2011-09-07 21:31:33 UTC) #3
gri
LGTM Thanks for doing this. - gri PS: It would be nice to have a ...
12 years, 8 months ago (2011-09-07 21:45:18 UTC) #4
r2
please hold off i'm not happy with this. -rob
12 years, 8 months ago (2011-09-07 21:46:28 UTC) #5
gri
*** Submitted as http://code.google.com/p/go/source/detail?r=661cb84cc6f0 *** path/filepath: Simplify Walk interface The last argument of filepath.Walk was ...
12 years, 8 months ago (2011-09-07 21:49:54 UTC) #6
rsc
Hang on please. Let's see if others have different, maybe better ideas.
12 years, 8 months ago (2011-09-07 21:51:22 UTC) #7
rsc
Can we please hg undo this? This is an API change and I don't think ...
12 years, 8 months ago (2011-09-07 21:52:19 UTC) #8
r
On Wed, Sep 7, 2011 at 2:52 PM, Russ Cox <rsc@golang.org> wrote: > Can we ...
12 years, 8 months ago (2011-09-07 21:59:24 UTC) #9
gustavo_niemeyer.net
> Hey, I said I would look into this. I want to reconsider the API ...
12 years, 8 months ago (2011-09-07 22:07:13 UTC) #10
r
I don't see quite the anonymity, but more to the point this was an API ...
12 years, 8 months ago (2011-09-07 22:10:30 UTC) #11
r
ha ha s/anonymity/unanimity/ -rob
12 years, 8 months ago (2011-09-07 22:12:34 UTC) #12
gustavo_niemeyer.net
> I don't see quite the unanimity, but more to the point this was an ...
12 years, 8 months ago (2011-09-07 22:15:56 UTC) #13
r
LGTM thanks
12 years, 8 months ago (2011-09-07 22:19:34 UTC) #14
gri
This is entirely my fault - I should have solicited more feedback. My apologies. That ...
12 years, 8 months ago (2011-09-07 22:28:27 UTC) #15
rsc
12 years, 8 months ago (2011-09-08 02:03:36 UTC) #16
On Wed, Sep 7, 2011 at 18:28, Robert Griesemer <gri@golang.org> wrote:
> I have thought about the gofix issue (and mentioned it in the code review),
> but except for the parameter passing change to Walk, I'm not sure that the
> gofix is strong enough to do the change in general. Only removing the
> parameter is not going to make a difference - the compiler will still
> complain about the missing Error method.

Even with a working gofix, I think it would still help to
have more time to think about which API change to make.

Russ
Sign in to reply to this message.

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