by TekMol · 4y ago · 0 comments
You hope there are no other libraries
called mail in your import path.
Let's take Python for example. With Python, I am in control of the import path.I can put those two mail modules in:
stuff/mail
tools/mail
And then use them like this: from stuff import mail as mail1
from tools import mail as mail2
I don't have to hope for anything.Namespaces are defined by the 3rd party developer.
In Python, they don't have to do anything. The project that uses the code decides.