Re: [RFC] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON
| From: | Stanislav Malyshev | Date: | Thu, 11 Jun 2020 20:44:20 +0000 |
| Subject: | Re: [RFC] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110490@lists.php.net to get a copy of this message | ||
Hi!
>> a) Character count (at line 456, character 23)
>>
>> b) Quote either the remainder or the parsed section on the line (MySQL
>> quotes the remainder, for example)
>>
>> c) Quote the whole line with an indicator where the error occurred. I'm
>> not sure what the best way to do this would be - generically this could
>> be encapsulated in several values: The line content, token start
>> character count, token length / end character count
>>
>
> I really like the combination of A + C. After using php for 13 years the
If we could do the same as, for example, clang does: just display some
indication where the problem happened within the code, with the line
that caused it. Certainly not displaying internal token names, unless I
am debugging the parser they are useless.
--
Stas Malyshev
smalyshev@gmail.com