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

Issue 198049: code review 198049: Changed path.Join to allow any number or args. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 1 month ago by smwca
Modified:
15 years ago
Reviewers:
CC:
rsc, r, golang-dev
Visibility:
Public.

Description

Changed path.Join to allow any number or args. I changed path.Join so it would accept any number of directories as arguments. I used the new ... T syntax. It is also completely backwards compatable with the old function.

Patch Set 1 #

Patch Set 2 : code review 198049: Changed path.Join to allow any number or args. #

Total comments: 2

Patch Set 3 : code review 198049: Changed path.Join to allow any number or args. #

Patch Set 4 : code review 198049: Changed path.Join to allow any number or args. #

Total comments: 5

Patch Set 5 : code review 198049: Changed path.Join to allow any number or args. #

Patch Set 6 : code review 198049: Changed path.Join to allow any number or args. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -16 lines) Patch
M src/pkg/path/path.go View 1 2 3 4 5 1 chunk +8 lines, -6 lines 0 comments Download
M src/pkg/path/path_test.go View 4 1 chunk +26 lines, -10 lines 0 comments Download

Messages

Total messages: 19
smwca
Hello rsc, r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years, 1 month ago (2010-02-02 01:40:34 UTC) #1
r
http://codereview.appspot.com/198049/diff/4/5 File src/pkg/path/path.go (right): http://codereview.appspot.com/198049/diff/4/5#newcode120 src/pkg/path/path.go:120: func Join(dir ...string) string { nice signature. http://codereview.appspot.com/198049/diff/4/5#newcode123 src/pkg/path/path.go:123: ...
15 years, 1 month ago (2010-02-02 01:49:27 UTC) #2
rsc
there should be tests.
15 years, 1 month ago (2010-02-02 01:57:16 UTC) #3
smwca
@rsc I will make tests tomorrow. I have never done it before but I can ...
15 years, 1 month ago (2010-02-02 03:04:37 UTC) #4
rsc
On Mon, Feb 1, 2010 at 19:04, <stephen@q5comm.com> wrote: > @rsc > I will make ...
15 years, 1 month ago (2010-02-02 06:46:19 UTC) #5
smwca
> Thanks. One important test is what happens when all the arguments > are empty. ...
15 years, 1 month ago (2010-02-03 01:07:59 UTC) #6
smwca
Hello rsc, r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years, 1 month ago (2010-02-03 03:16:41 UTC) #7
smwca
I am sorry. I am new to the codereview system. How can I add src/pkg/path/path_test.go ...
15 years, 1 month ago (2010-02-03 03:21:04 UTC) #8
r2
On Feb 3, 2010, at 2:21 PM, stephen@q5comm.com wrote: > I am sorry. I am ...
15 years, 1 month ago (2010-02-03 03:24:30 UTC) #9
smwca
All my changes are up. -- Stephen
15 years, 1 month ago (2010-02-03 03:26:34 UTC) #10
rsc
On Tue, Feb 2, 2010 at 19:21, <stephen@q5comm.com> wrote: > I am sorry. I am ...
15 years, 1 month ago (2010-02-03 03:27:24 UTC) #11
smwca
bump
15 years, 1 month ago (2010-02-03 21:08:38 UTC) #12
rsc
On Wed, Feb 3, 2010 at 13:08, <stephen@q5comm.com> wrote: > bump we'll get there. i ...
15 years, 1 month ago (2010-02-03 22:05:43 UTC) #13
rsc
http://codereview.appspot.com/198049/diff/14/1009 File src/pkg/path/path.go (right): http://codereview.appspot.com/198049/diff/14/1009#newcode118 src/pkg/path/path.go:118: // Join joins any number of dirs into a ...
15 years, 1 month ago (2010-02-04 07:40:54 UTC) #14
smwca
Done. I am starting to think that I am slowing you down and causing more ...
15 years, 1 month ago (2010-02-05 00:11:11 UTC) #15
rsc
one tiny nit: fix the Join comment, which says "any number of dirs" but should ...
15 years, 1 month ago (2010-02-05 00:20:16 UTC) #16
smwca
On 2010/02/05 00:20:16, rsc wrote: > one tiny nit: fix the Join comment, > which ...
15 years, 1 month ago (2010-02-05 01:44:40 UTC) #17
rsc
LGTM
15 years, 1 month ago (2010-02-05 10:34:39 UTC) #18
rsc
15 years, 1 month ago (2010-02-05 10:39:35 UTC) #19
*** Submitted as http://code.google.com/p/go/source/detail?r=4c8fc3e2b089 ***

path: make Join variadic

R=rsc, r
CC=golang-dev
http://codereview.appspot.com/198049

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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