News for hackers. Stuff that matters.
Re:PHP – The Right Way by leegraham on Monday February 07, 2022 @04:52AM (#30242525)
That example would become `use Stuff\Mail as Mail1` and `use Tools\Mail as Mail2` in PHP. What's the difference?
Re:PHP – The Right Way by TekMol on Monday February 07, 2022 @04:57AM (#30242567)
The difference is that in PHP, the developers of "Stuff\Mail" and "Tools\Mail" would have to define "Stuff" and "Tools" as the namespace for their code.

In Python, they don't have to do anything. The project that uses the code decides.