On 10/08/2020 10:41, Derick Rethans wrote:
I've just opened the vote to make sure we don't make a terrible mistake
with using the @@ syntax for attributes:

https://wiki.php.net/rfc/shorter_attribute_syntax_change#voting


Here is a more detailed comparison of how this would look like in real use, adapted from some basic doctrine and symfony validation annotation I got somewhere:

https://gist.github.com/Seldaek/b7a3bd28920c6cc181e67a829b13a81c

I think something like this would belong in the RFC. I find that the grouping "feature" does not help that much, it's kinda hard to grasp what's going on. Proper syntax highlighting would surely help but still.

You may argue it's comparing in terms of looks, but as others have said I find it hard to compare them in other terms as the pros/cons listed in the RFC have a very limited impact for the most part, so yeah I feel like looks and readability should be at least somewhat taken into account too.

Best,
Jordi

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

Reply via email to