Hey,

On 04/06/2020 01:54, Theodore Brown wrote:

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

Thanks for the write-up. I didn't feel strongly either way before but after reading the RFC I am hoping it passes.

Another fringe benefit is the ability to grep for attributes, @@ does not occur anywhere in a couple projects I checked, while << does occur both as the << operator and heredocs/nowdocs. My fellow grumpy-old-non-IDE-users might find this a valid argument too :)

Best,
Jordi

--
Jordi Boggiano
@seldaek - https://seld.be

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

Reply via email to