Re: [PHP-DEV] Re: [VOTE] Attribute Amendments

2020-06-22 Thread Benjamin Eberlei
On Mon, Jun 22, 2020 at 6:57 PM David Rodrigues wrote: > I like to suggest that, by default, attributes could be repeatable, so we > can disable this instead (eg. "@@ Attribute(self::IS_UNIQUE)"). > > during research we found that most of the attributes really have to be unique, and only a small

Re: [PHP-DEV] Resolve fallback-to-root-namespace in preloaded implementations

2020-06-22 Thread Nicolas Grekas
Hello Nikita, with preloading and Composer, we don't need anymore to consider autoloading >> for functions and/or constants. The reason is that basically Composer is >> already doing a great job at loading functions: just give it a list of >> files and it will ensure they are included all the

[PHP-DEV] Re: [VOTE] Attribute Amendments

2020-06-22 Thread Benjamin Eberlei
Hello, The voting period is over and all four votes have been accepted: - Rename PhpAttribute to Attribute - Allow grouped syntax (though this will probably be obsolete looking at @@ syntax currently winning the re-vote) - Attribute targets - Attribute repeatability Thank you everyone! On Mon,

Re: [PHP-DEV] Re: [VOTE] Attribute Amendments

2020-06-22 Thread David Rodrigues
I like to suggest that, by default, attributes could be repeatable, so we can disable this instead (eg. "@@ Attribute(self::IS_UNIQUE)"). Atenciosamente, David Rodrigues Em seg., 22 de jun. de 2020 às 13:38, Benjamin Eberlei escreveu: > Hello, > > The voting period is over and all four votes

[PHP-DEV] Re: Making all Traversables an Iterator or IteratorAggregate

2020-06-22 Thread Björn Larsson
Hi Nikita, Den 2020-06-19 kl. 12:32, skrev Nikita Popov: On Tue, Jun 9, 2020 at 3:33 PM Nikita Popov wrote: On Tue, May 12, 2020 at 10:26 AM Nikita Popov wrote: On Wed, Mar 11, 2020 at 10:50 AM Nikita Popov wrote: Hi internals, Userland classes that implement Traversable must do so

[PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-22 Thread Björn Larsson
Hi Ilija,Den 2020-06-18 kl. 22:51, skrev Ilija Tovilo: Hi Björn I'd like to announce the match expression v2 RFC: https://wiki.php.net/rfc/match_expression_v2 Well one could argue that when working with legacy code containing switch statements where one gradually migrates to match, it might

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Match expression v2

2020-06-22 Thread Benas IML
On Mon, Jun 22, 2020, 6:35 PM Björn Larsson wrote: > Hi Ilija,Den 2020-06-18 kl. 22:51, skrev Ilija Tovilo: > > > Hi Björn > > > >>> I'd like to announce the match expression v2 RFC: > >>> https://wiki.php.net/rfc/match_expression_v2 > >> Well one could argue that when working with legacy code