Re: [VOTE] Shorter Attribute Syntax Change
| From: | Derick Rethans | Date: | Tue, 11 Aug 2020 13:37:37 +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-111466@lists.php.net to get a copy of this message | ||
On Tue, 11 Aug 2020, Theodore Brown 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.
They're the same on a US English/US International keyboard, both 4
presses:
For @@: Shift 2 Shift 2
For @[]: Shift 2 [ ]
In the case of @[], an IDE likely will automatically add the
closing ].
Additionally, on a US English/US International keybaord, Shift-2 (for @)
is an awkward combination to type with the pinky and middle finger of
your left hand.
On a UK English, it's the same amount, with the @ a little easier than
on a US English one, with: left-shift @/' [ ]
So if you want to add typeability to the matrix, I can do that, but @@
comes out worse.
cheers,
Derick
--
PHP 7.4 Release Manager
Host of PHP Internals News: https://phpinternals.news
Like Xdebug? Consider supporting me: https://xdebug.org/support
https://derickrethans.nl | https://xdebug.org | https://dram.io
twitter: @derickr and @xdebug