I'm curious as to why you consider autoloading over PSR-4 namespaces as insufficient.
I'm curious as to why you consider autoloading over PSR-4 namespaces as insufficient.
If two packages I require depend on incompatible versions of some third package, there aren't any easy ways for me to resolve it.
This problem exists because of the global nature of PHP namespaces.
https://www.php.net/manual/en/language.namespaces.importing....
At least in the PHP I'm familiar with, nothing "happens" at `use` time; the first time you call a method on a class it autoloads. The autoloader is then what does the work of finding and requiring the file. No class, no autoloader.
A module system and less reliance on PSR the better. Why exactly does PSR still exist?
That's my problem with it. It should be focused on what's good for developers. Not what makes it easier to overengineer the next flavour of the month.
I will readily admit that 99% of my assertions are some variation of `$this->assertEquals()`
As a maker, I prefer a clean stack. So that its complexity does not slow me down. Workarounds make development slower and slower, the more it becomes a giant hairball of workarounds and workarounds around workarounds.
In Python and JavaScript, I don't need those workarounds. Would be awesome if PHP catches up.