On Thu, Jun 4, 2020 at 1:55 AM Theodore Brown <theodor...@outlook.com>
wrote:

> Hi internals,
>
> I discussed the syntax for attributes further with Benjamin, Martin,
> and several other internals developers off-list, and with their
> feedback completed an RFC proposing to use the shorter `@@` syntax
> instead of `<<>>` for attributes in PHP 8.
>
> https://wiki.php.net/rfc/shorter_attribute_syntax
>
> The goal is not to bikeshed over subjective syntax preferences,
> but to address several concrete shortcomings related to verbosity,
> nested attributes, confusion with generics and other tokens, and
> dissimilarity to other common languages.
>

I don't have strong feelings for any syntax. I was focussing on <<Attr>>
because from the previous RFC proposed by Dmitry in 2016 it looked like
this is the most likely to get accepted and at least compared to @: that
proved to be right.

In hindsight it would have been better to have a three way vote on syntax
including this AT-AT syntax, but having another vote now just about the
syntax (not the feature) will make the end result (whatever it might be)
stronger. And this is the last possible point in time where we could make
these changes.


> Best regards,
> Theodore
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply via email to