Re: [RFC] [Discussion] Shorter Attribute Syntax Change
| From: | Ben Ramsey | Date: | Tue, 28 Jul 2020 15:25:34 +0000 |
| Subject: | Re: [RFC] [Discussion] Shorter Attribute Syntax Change | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111221@lists.php.net to get a copy of this message | ||
> On Jul 28, 2020, at 10:13, Côme Chilliet <come.chilliet@fusiondirectory.org> wrote:
>
> Le Tue, 28 Jul 2020 09:46:38 -0500,
> Joe Ferguson <joe@joeferguson.me> a écrit :
>
>> Hello Internals,
>>
>> I've been working with Derick Rethans and others (thanks all!) on a Shorter
>> Attribute Syntax Change RFC which outlines reasons why the "#[]" syntax
>> would be preferred over the currently agreed upon "@@" syntax for Shorter
>> Attribute Syntax.
>>
>> An important part of the research that went into this proposal demonstrates
>> how "@@" will make handling attributes more difficult for PHP_CodeSniffer
>> (and similar tools) and shows how the alternative "#[]" syntax is more
>> friendly for these tools.
>>
>> You can find the RFC
>> https://wiki.php.net/rfc/shorter_attribute_syntax_change
>> and I'm happy to
>> answer any questions as best I can.
>>
>
> The text uses « instead of <<, it’s confusing.
>
> It should be made clearer what #[ ] has over << >>, which does not cause any BC
> break.
>
> Côme
I don’t know that it’s valuable to spend time discussing advantages
over
Attachment: [application/pgp-signature] Message signed with OpenPGP signature.asc
<< >>. Isn’t it clear from the previous RFC[^1] that @@
and
#[ ] both won out over << >>?
Cheers,
Ben
[^1]: https://wiki.php.net/rfc/shorter_attribute_syntax
Attachment: [application/pgp-signature] Message signed with OpenPGP signature.asc