Re: Should PHP reserve a namespace for built-in classes?
From: Nick Lockheart Date: Sat, 27 Jul 2024 22:30:23 +0000 Subject: Re: Should PHP reserve a namespace for built-in classes? References: 1 2 3 4 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
> > I think a better solution would be to have one namespace for all > > bundled classes, so that a specific namespace is reserved in > > advance. > > Needing to prefix everything by \PHP or something like this would > provide for a terrible developer experience when using the standard > library. > What are people's thoughts on requiring a use statement to make built- in classes available in the global namespace? >
Thread (10 messages)
« previous | php.internals (#124656) | next » |
---|