Re: [VOTE] Shorter Attribute Syntax Change
| From: | Andreas Leathley | Date: | Mon, 10 Aug 2020 13:56:26 +0000 |
| Subject: | Re: [VOTE] Shorter Attribute Syntax Change | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111432@lists.php.net to get a copy of this message | ||
On 10.08.20 15:05, Markus Fischer wrote:
Personally, and never gave it much thought TBH, theIt is a pity that syntax with ending delimiters and syntax with no ending delimiters are now mixed in the discussion, instead of first finding a concensus if delimiters are even needed or what advantages/disadvantages they have. Because there are many alternatives in terms of syntax - looking back at the very first vote about attributes the @: syntax doesn't seem so bad, if no ending delimiters are needed. In the new RFC all alternatives to @@ have delimiters and it is suggested having them is good, yet the possible advantages of delimiters are never explained, ideally with some real-world examples showing why delimiters would be good to have.@@AND<</>>in fact is the most "unreadable" version to me because duplicate occurrence of a single character somehow creates a noise _for me_, I don't feel eligible to have a vote, but based on that and certainly aware IDEs in the future will help with this, I would vote for _anything_ not duplicating characters, i.e. favoring#[]or@[]