[Cuis-dev] Namespaces?
Casey Ransberger
bahweep at icloud.com
Thu May 16 23:58:14 PDT 2019
So if you use a tool to rename my class, and then load another package with a class that depends on it, but doesn’t know you’ve renamed it, how’s that get dealt with?
> On May 13, 2019, at 9:34 AM, Philip Bernhart via Cuis-dev <cuis-dev at lists.cuis.st> wrote:
>
> Hi,
>
>>> Every now and then I wish we had namespaces. What's the simplest
>>> namespace-like thing that could allows us to simultaneously load two
>>> packages with clashing class names?
>
> do we really need namespaces? Or do we need a facility to
> detect nameclashes and then rename the package to something
> fitting to the current naming situation?
>
> Namespaces normally are just a cludge to solve name clashes.
> As it could be that some other package on the world names
> itself "org.coolcompany.Model" and then you have the same issues
> again.
>
> I think renaming a package and all the self references in it so
> that it can be integrated into the global single level namespace
> makes more sense, atleast to me.
>
> My two cents,
> Philip
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
More information about the Cuis-dev
mailing list