Hello golang-dev@googlegroups.com, bradfitz@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 7 months ago
(2013-06-07 09:36:37 UTC)
#2
I don't understand what will set this build tag. Negated names are always hard to ...
11 years, 7 months ago
(2013-06-07 13:36:22 UTC)
#3
I don't understand what will set this build tag. Negated names are always hard
to understand, especially when the main use of them is with the ! operator. Is
it possible to use cgo_net rather than noncgo_net?
It should probably be cgonet, actually, with no underscore.
On 2013/06/07 13:36:22, iant wrote: > I don't understand what will set this build tag. ...
11 years, 7 months ago
(2013-06-07 14:00:50 UTC)
#4
On 2013/06/07 13:36:22, iant wrote:
> I don't understand what will set this build tag. Negated names are always
hard
> to understand, especially when the main use of them is with the ! operator.
Is
> it possible to use cgo_net rather than noncgo_net?
yes, but we will have to somehow enable the tag cgo_net by default.
> It should probably be cgonet, actually, with no underscore.
yeah, i like cgonet better, but we need to figure out whether
we want to make cgonet the default.
i can see multiple problems here, for example, what if the user
actually use a tag called cgonet in his own source? should we hardcode
the build tag just for the net package?
with noncgo_net, the name is not good, but it's there for people
who want something unusual (and he just need to install net once
with this tag, so the tag won't affect his own source).
On 2013/06/07 14:00:50, minux wrote: > yeah, i like cgonet better, but we need to ...
11 years, 7 months ago
(2013-06-07 14:30:52 UTC)
#5
On 2013/06/07 14:00:50, minux wrote:
> yeah, i like cgonet better, but we need to figure out whether
> we want to make cgonet the default.
> i can see multiple problems here, for example, what if the user
> actually use a tag called cgonet in his own source? should we hardcode
> the build tag just for the net package?
We already have a builtin tag "cgo", I don't see adding "cgonet" as a big
problem.
I don't know when to set it, though.
Ian
The negative is precisely because we can't introduce a new tag that's always on. We ...
11 years, 7 months ago
(2013-06-10 17:48:55 UTC)
#6
The negative is precisely because we can't introduce a new tag that's always on.
We can only allow people to specify a new tag to add to the set. We can't use
'cgonet' because cgonet is not part of the default set, and if it were there'd
be no way to remove it.
Using a better name with the same semantics would help though. Perhaps 'netgo'
to mean 'net in pure go'.
PTAL, changed to use netgo, and updated doc/go1.2.txt. On 2013/06/10 17:48:55, rsc wrote: > Using ...
11 years, 7 months ago
(2013-06-10 17:55:33 UTC)
#7
PTAL, changed to use netgo, and updated doc/go1.2.txt.
On 2013/06/10 17:48:55, rsc wrote:
> Using a better name with the same semantics would help though. Perhaps 'netgo'
> to mean 'net in pure go'.
Issue 7100050: code review 7100050: net: introduce noncgo_net build tag to disable cgo only...
(Closed)
Created 12 years ago by minux1
Modified 11 years, 7 months ago
Reviewers:
Base URL:
Comments: 0