Hello colleague, On Tuesday, July 22, 2014 12:30:55 PM UTC+2, Ivar Nesje wrote: > > The problem is that both Gtk and Gadfly exports a draw function. > Internally those are scoped by module so that their name is Gadfly.draw() > and Gtk.draw(), and you can call them as such in your code. We can't merge > the function's method, because there is no way to know which one to call if > both define a draw(a::Any) method. > > When you use `using` you import the exported identifiers into the local > scope, and if there is a conflict you run into trouble because you don't > know which one you'll get. >
There was recently the posting https://groups.google.com/forum/?fromgroups=#!topic/julia-users/w6PnEUpEb8Q about namespaces and missing this in julia. Afaiu: It's not needed because of the multiple dispatch (or modules). I agree that there should be some means of resolving conflicts (by warning, by precedence) but just dropping a whole set of methods because they conincidentially have the same name AND at the same time advertising multiple dispatch in julia doesn't fit for me.
