Re: [VOTE] Shorter Attribute Syntax Change

From: Date: Mon, 10 Aug 2020 11:32:13 +0000
Subject: Re: [VOTE] Shorter Attribute Syntax Change
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-111422@lists.php.net to get a copy of this message
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

« previous php.internals (#111422) next »