Re: [PHP-DEV] [RFC] Amendments to Attributes

This is only part of a thread. view whole thread
  110218
May 20, 2020 17:36 ocramius@gmail.com (Marco Pivetta)
Hey Benjamin,
<http://ocramius.github.com/>


On Wed, May 20, 2020 at 7:08 PM Benjamin Eberlei <kontakt@beberlei.de>
wrote:

> Hi everyone, > > the Attributes RFC was rather large already, so a few things were left open > or discussions during the vote have made us rethink a things. > > https://wiki.php.net/rfc/attribute_amendments > > These points are handled by the Amendments RFC to Attributes: > > 1. Proposing to add a grouped syntax < > 2. Rename PhpAttribute to Attribute in global namespace (independent of the > namespace RFC) > 3. Add validation of attribute class targets, which internal attributes can > do, but userland can't > 4. Specification if an attribute is repeatable or not on the same > declaration and fail otherwise. > > Each of them is a rather small issue, so I hope its ok to aggregate all > four of them in a single RFC. Please let me know if it's not. >
Do you hope to get nested attributes to 8.0, or is it something you'd prefer to happen at a later time? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/
  110223
May 20, 2020 21:31 kontakt@beberlei.de (Benjamin Eberlei)
On Wed, May 20, 2020 at 7:37 PM Marco Pivetta <ocramius@gmail.com> wrote:

> Hey Benjamin, > <http://ocramius.github.com/> > > > On Wed, May 20, 2020 at 7:08 PM Benjamin Eberlei <kontakt@beberlei.de> > wrote: > >> Hi everyone, >> >> the Attributes RFC was rather large already, so a few things were left >> open >> or discussions during the vote have made us rethink a things. >> >> https://wiki.php.net/rfc/attribute_amendments >> >> These points are handled by the Amendments RFC to Attributes: >> >> 1. Proposing to add a grouped syntax < >> 2. Rename PhpAttribute to Attribute in global namespace (independent of >> the >> namespace RFC) >> 3. Add validation of attribute class targets, which internal attributes >> can >> do, but userland can't >> 4. Specification if an attribute is repeatable or not on the same >> declaration and fail otherwise. >> >> Each of them is a rather small issue, so I hope its ok to aggregate all >> four of them in a single RFC. Please let me know if it's not. >> > > > Do you hope to get nested attributes to 8.0, or is it something you'd > prefer to happen at a later time? >
Martin evaluated the technical requirements in more detail and we discussed with others that the timeframe is probably to short to get all the details fleshed out :-( So we are going to table that for 8.1
  110224
May 20, 2020 21:34 benas.molis.iml@gmail.com (Benas IML)
Hello,

Would it possible to make a separate RFC for renaming `PhpAttribute` to
`Attribute` and `PhpCompilerAttribute` to `CompilerAttribute`? Since it
would a huge BC break changing this in PHP 8.1.

Best regards,
Benas Seliuginas