Re: [PHP-DEV] [RFC][DISCUSSION] PHP Namespace in core

This is only part of a thread. view whole thread
  109665
April 15, 2020 19:36 george.banyard@gmail.com ("G. P. B.")
On Wed, 15 Apr 2020 at 15:51, Derick Rethans <derick@php.net> wrote:

> On Wed, 15 Apr 2020, Michał Brzuchalski wrote: > > > Hi internals, > > > > I hope you're doing well. > > > > I'd like to announce the PHP Namespace in core RFC for discussion. > > The RFC is authored by me together with George Peter Banyard and it's > > purpose > > is nothing more like to allow the use of PHP Namespace in the core. > > I think a "may" is not a clever way forwards. I think that if you want > to use the PHP namespace for engine specific things (like > Attribute/Token), then they must all use that, or none. > > cheers, > Derick > > -- > PHP 7.4 Release Manager > Host of PHP Internals News: https://phpinternals.news > Like Xdebug? Consider supporting me: https://xdebug.org/support > https://derickrethans.nl | https://xdebug.org | https://dram.io > twitter: @derickr and @xdebug > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php
Just to clarify is this limited to new features or should this also be applied to current engine features? If only the former I personally don't mind making it a requirement. Best regards George P. Banyard
  109669
April 15, 2020 20:27 derick@php.net (Derick Rethans)
On 15 April 2020 20:36:25 BST, "G. P. B." banyard@gmail.com> wrote:
>On Wed, 15 Apr 2020 at 15:51, Derick Rethans <derick@php.net> wrote: > >> On Wed, 15 Apr 2020, Michał Brzuchalski wrote: >> >> > Hi internals, >> > >> > I hope you're doing well. >> > >> > I'd like to announce the PHP Namespace in core RFC for discussion. >> > The RFC is authored by me together with George Peter Banyard and >it's >> > purpose >> > is nothing more like to allow the use of PHP Namespace in the core. >> >> I think a "may" is not a clever way forwards. I think that if you >want >> to use the PHP namespace for engine specific things (like >> Attribute/Token), then they must all use that, or none. >> > >Just to clarify is this limited to new features or should this also be >applied to current engine features? >If only the former I personally don't mind making it a requirement.
Everything introduced for PHP 8 and later. I can't think of such an engine related item like Attribute / Token from earlier versions however. Can you? cheers, Derick
  109670
April 15, 2020 20:38 george.banyard@gmail.com ("G. P. B.")
On Wed, 15 Apr 2020 at 22:27, Derick Rethans <derick@php.net> wrote:

> On 15 April 2020 20:36:25 BST, "G. P. B." banyard@gmail.com> > wrote: > >On Wed, 15 Apr 2020 at 15:51, Derick Rethans <derick@php.net> wrote: > > > >> On Wed, 15 Apr 2020, Michał Brzuchalski wrote: > >> > >> > Hi internals, > >> > > >> > I hope you're doing well. > >> > > >> > I'd like to announce the PHP Namespace in core RFC for discussion. > >> > The RFC is authored by me together with George Peter Banyard and > >it's > >> > purpose > >> > is nothing more like to allow the use of PHP Namespace in the core. > >> > >> I think a "may" is not a clever way forwards. I think that if you > >want > >> to use the PHP namespace for engine specific things (like > >> Attribute/Token), then they must all use that, or none. > >> > > > >Just to clarify is this limited to new features or should this also be > >applied to current engine features? > >If only the former I personally don't mind making it a requirement. > > > Everything introduced for PHP 8 and later. I can't think of such an engine > related item like Attribute / Token from earlier versions however. Can you? > > cheers, > Derick >
Other than ext/Reflexion, not really. I've amended the RFC [1] to use "must" instead of "may". Best regards George P. Banyard [1] https://wiki.php.net/rfc/php-namespace-in-core