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

Issue 5696083: code review 5696083: cmd/go: explain x... vs. x/... in help importpath (Closed)

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

Description

cmd/go: explain x... vs. x/... in help importpath Fixes issue 3110.

Patch Set 1 #

Patch Set 2 : diff -r e338876cd5af https://code.google.com/p/go/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M src/cmd/go/help.go View 1 chunk +3 lines, -2 lines 1 comment Download

Messages

Total messages: 5
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
13 years, 3 months ago (2012-02-26 20:34:43 UTC) #1
bradfitz
LGTM On Sun, Feb 26, 2012 at 12:34 PM, <r@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > ...
13 years, 3 months ago (2012-02-26 22:48:14 UTC) #2
r
*** Submitted as http://code.google.com/p/go/source/detail?r=9b92ebc5a9be *** cmd/go: explain x... vs. x/... in help importpath Fixes issue ...
13 years, 3 months ago (2012-02-26 22:52:03 UTC) #3
rsc
http://codereview.appspot.com/5696083/diff/1002/src/cmd/go/help.go File src/cmd/go/help.go (right): http://codereview.appspot.com/5696083/diff/1002/src/cmd/go/help.go#newcode38 src/cmd/go/help.go:38: in subdirectories of the encoding tree, while net... expands ...
13 years, 3 months ago (2012-02-28 16:00:33 UTC) #4
r2
13 years, 3 months ago (2012-02-28 20:45:36 UTC) #5
On 29/02/2012, at 3:00 AM, rsc@golang.org wrote:

> 
> http://codereview.appspot.com/5696083/diff/1002/src/cmd/go/help.go
> File src/cmd/go/help.go (right):
> 
> http://codereview.appspot.com/5696083/diff/1002/src/cmd/go/help.go#newcode38
> src/cmd/go/help.go:38: in subdirectories of the encoding tree, while
> net... expands to
> No change needed, but an observation:
> net... would also expands to netchan, since the wildcard is
> purely lexical.  However, right now there are no instances
> in the standard library where one package has a name that
> is a prefix of another non-subdirectory package, so there
> is no way to expand this example to illustrate that.

yes.

pattern matching is like that: sometimes it matches things you don't want. not
sure anything is called for, but i observe that people will continue to think
that net/* gives net as well. i believe that they're not thinking right, but
we'll see this "issue" again, and i wanted to get something into the docs to
suggest why.

one could argue that net... could be interpreted not to match netchan, but net/*
and net/..., but i won't make that argument because i don't want to document
that behavior.

-rob


Sign in to reply to this message.

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