On 13/02/15 17:27, Andrea Faulds wrote: >>> But with Marcio’s proposal, we could instead write this: >>> >> >>> >> use function SomeLibrary\Math\{sin, cos, tan, degrees, radius}; >> > >> > Well it used to be simply ... >> > >> > require SomeLibrary\math.php; > I can’t say I miss the days of putting everything in the global namespace. > Makes it impossible to use two libraries with conflicting function names.
Well one fix would be to have all the namespace stuff in the math.php file? All the use function stuff just loaded via the secondary file. But the other way of looking at is 'why do we have so many different libraries all doing the same thing?' Currently database abstraction is a complete mess simply because there is not now a standard way of doing things :( If you have to use two libraries with conflicting names is that not because there are problems with both libraries if you need to use both? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php