Re: [VOTE] Shorter Attribute Syntax Change
| From: | Lynn | Date: | Tue, 11 Aug 2020 13:15:39 +0000 |
| Subject: | Re: [VOTE] Shorter Attribute Syntax Change | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111464@lists.php.net to get a copy of this message | ||
On Tue, Aug 11, 2020 at 3:03 PM Theodore Brown <theodorejb@outlook.com>
wrote:
> A second downside of @[] that doesn't appear to have been discussed
> yet is typability. On my keyboard, it requires four different keys
> on different sides of the keyboard, whereas @@ just requires two keys.
>
If typability really matters, we should've deprecated the backtick version
to run things. We also seem to forget about readability. @@ makes things
really hard to read for me as it draws attention, the same goes for <<and>>
being written as such, with spaces it's fine. In terms of @[] typability,
my IDE auto completes the ] when I type [. After that we have to type a
word which will most likely require keys on the right side of the keyboard
anyway. Sure, typing @@ is easier, for me this is at the cost of
readability. I read code more frequently than I write it, so I think this
should matter more.
Please don't use @@ for annotations/attributes.