It would also mean that every Go binary ends up
depending on glibc. I don't know that I am ready
for that yet. I think it's likely we'll get pushed there
eventually but I'd kind of like to avoid it as long as
possible.
If it were a separate package then everything
gets easier.
Russ
this means someone will need LDAP lookup, another parallel package
will be born, and we'll have more confusion. let's get it right, or at
least lay down a design that can adapt to being right.
> b) putting this in a different package.
yes.
> c) a + b. having a) do the simple thing, but letting an empty import of b)
> register with package os better lookup functions.
that's too fiddly and mysterious.
-rob
> b) putting this in a different package.yes.
how about
os/user
type User struct
then you stutter user.User, but rarely because in return you get
Lookup(string) (*User, os.Error)
LookupId(int) (*User, os.Error)
and you see things like
u, err := user.Lookup("bradfitzcarraldo")
the problem is that 'user' may be too good a name to take away by
making it the package name. it might make sense to pluralize the
name, although i don't like that precedent.
-rob