3 ms·
This. PHP bolted on namespaces, back in 5.3 (iirc) and they failed to namespace the stdlib, and now 20 years later we are still stuck with the same garbage. PH
by phplovesong 2y ago
This. PHP bolted on namespaces, back in 5.3 (iirc) and they failed to namespace the stdlib, and now 20 years later we are still stuck with the same garbage.
PHP has only globals really, no module system what so ever.
- shakesbeard 2y ago> and now 20 years later we are still stuck with the same garbage. and it hasn't been an issue ever. because all userland code lives in its own namespaces.
- phplovesong 2y agoIt gets messy real fast. I have seen horrible long namespaces ala java all over the place. It only leads to bad design. Having no way to force things. PHP messed up pretty big when they made this ad-hoc namespace thing.