On Wed, Jul 23, 2014 at 6:06 AM, Andreas Lobinger <[email protected]>
wrote:

>
> In principle i agree, everything that is defined in the Modules is usable
> regarding its own namespace. But then, why do we have the export of
> functions? It's not even needed...
> If you strictly prefix all functions by their module everything will be
> alright, but what in mixed environments?
>

You can just do `import Gadfly` and `import Gtk` and then use everything
via prefixes like `Gadfly.plot`. I suspect this will be unpopular for
interactive work, however.


> The point i'm trying to make is: The current situation - not merging the
> functions/methods - creates a dependency between Modules/Packages. Is this
> the intended work style?
>

Merging functions is definitely not a good solution. In issue #4345
<https://github.com/JuliaLang/julia/issues/4345> I proposed that clashing
names be dropped entirely, forcing the programmer to pick which name they
meant explicitly. That would make the order that using statements occur
insignificant, at least in this regard.

Reply via email to