Re: [RFC] Shorter attribute syntax
| From: | Theodore Brown | Date: | Mon, 08 Jun 2020 21:43:15 +0000 |
| Subject: | Re: [RFC] Shorter attribute syntax | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110438@lists.php.net to get a copy of this message | ||
On Mon, June 8, 2020 at 1:08 PM Markus Fischer <markus@fischer.name> wrote:
> I noticed that my
@ character did bleed/meld almost with the
> first
> character of the attribute name...wide characters like the M
> almost
> touch the @.
Hi Markus,
The first question that comes to my mind is, wouldn't this also be an
issue in all the other languages that use the @Attr syntax?
Personally I've used TypeScript decorators quite a bit, and the use
of the @ character hasn't been a readability problem there.
I guess this mostly comes down to the font you use. E.g. here's how
the example looks for me in VS Code with the JetBrains Mono font:
https://imgur.com/a/qWQf6lz
And it's probably safe to say that syntax support/highlighting in
PhpStorm will be improved prior to the release of PHP 8.0. :)
Best regards,
Theodore