to be more specific what I mean because apparently I may know nothing about namespaces , I was talking in terms of Python's module and package system
even though python uses special syntax "import" to import a module, a source file, the real functionality is actually a method but of an object dealing with the handling of modules and packages , packages are basically file directories containing mutliple modules
as soon as you do the import the syntax is the usual object syntax
so��
Dog.bark()��
can be anything
1) A class method call, Dog being the class
2) A instance method call, Dog being the instance
3) or a function call, Dog being the function , which is also an object (methods in python are basically function object taking the reference to an instance as first argument, hence why the weird syntax of adding self as first argument when we define instance method) and Dog is the module imported.��
of course in case (3) you can collapse the module "name" so you can do only bark() if you import via "from Dog import *" which means from module Dog import every object.��
But from import is frown upon in the python world because obviously it makes it easier to have name collision which is what the module system try to avoid in the first place.
So the equivelant of pharo would be
MyModule MyInstance myMessage:��
or if you include packages as well
MyPackage MyModule MyInstance myMessage:
which follows pharo syntax and OO design. That's my general idea at least.
Please enlighten me :)