Re: Re: [RFC] Arrow functions / short closures
| From: | Rowan Collins | Date: | Wed, 10 Apr 2019 09:12:45 +0000 |
| Subject: | Re: Re: [RFC] Arrow functions / short closures | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105196@lists.php.net to get a copy of this message | ||
On Wed, 10 Apr 2019 at 09:59, Robert Hickman <robehickman@gmail.com> wrote:
> > I'd just like to amplify this mention of 3rd party tooling: if we go with
> > something which requires complex lexer/parser rules, then every editor,
> > IDE, and static analysis tool will need to also work with that syntax.
> >
>
> Is this actually a problem? Don't these tools make use of existing
> parsers like 'php parser', thus the cost is lower than initially
> apparent?
>
I don't think you can generalise about "these tools" at all - for instance,
PHPStorm is written in Java, and VSCode is written in JS; I doubt they
share any parser components with each other, or with anything written in C
or PHP itself.
We're not just talking about existing tools, either, but every tool created
until the language dies.
Regards,
--
Rowan Collins
[IMSoP]