On Sun, Aug 2, 2020 at 4:40 PM Dan Ackroyd <dan...@basereality.com> wrote:

> Theodore Brown  wrote:
> >
> > The Shorter Attribute Syntax RFC explicitly mentioned that the @@
> > syntax would supersede the grouped attributes proposal: [1]
> 
> From the RFC:
> >
> > # Unaffected Functionality
> > ...it will supersede the syntax for grouped attributes.
> 
> I missed that change at least in part because it's listed under
> "unaffected functionality".
> 
> Even reading it now, it's not obvious that "superseded" means "grouped
> attributes won't be supported".

Hi Dan,

I'm not sure it can really be called a change, since at the time the
Shorter Attribute Syntax RFC went to vote the Attribute Amendments
RFC had not yet been accepted (and it certainly wasn't clear whether
the grouped attribute proposal would pass).

Anyway, the whole point of the grouped attribute syntax was to
alleviate some of the verbosity of the << and >> tokens when adding
multiple attributes. The @@ syntax supersedes, or replaces grouped
attributes since in real-world use cases it is even less verbose than
the grouped attribute proposal, [1] while avoiding its additional
implementation complexity.

Kind regards,  
Theodore

[1]: https://externals.io/message/110355#110414
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to