Re: [RFC] [Discussion] Shorter Attribute Syntax Change
| From: | Derick Rethans | Date: | Sun, 02 Aug 2020 15:06:28 +0000 |
| Subject: | Re: [RFC] [Discussion] Shorter Attribute Syntax Change | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111280@lists.php.net to get a copy of this message | ||
On Wed, 29 Jul 2020, Benjamin Eberlei wrote:
> Personally I favor #[] myself, but there has been a vote with a
> substantial participation choosing @@. Overturning this democratic
> outcome should require **significant** technical arguments, otherwise
> this RFC would provide problematic precedent for any RFC to be
> overturned by arbitrary revoting.
>
> The arguments the RFC brings forward don't convince me that we should
> pick #[] over @@.
However, one other thing just came to light where the "Shorter Syntax"
RFC was unclear about: no longer supporting grouping.
Changing the accepted << .. >> syntax breaks something that
was accepted through "Attribute Amendments": grouping, as per
https://wiki.php.net/rfc/attribute_amendments#group_statement_for_attributes
The switch to @@ does now not allow for this, but we haven't spefically
voted on we wanted to get rid of grouping. The Shorter Syntax RFC does
talk about it in "Verbosity"
(https://wiki.php.net/rfc/shorter_attribute_syntax#verbosity), but
that's not a technical reason, just opinion about readability.
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