4 ms·
Even in Hebrew, that is a useless error message...token names should mean what the token means, not what it looks like.
by koenigdavidmj 15y ago
Even in Hebrew, that is a useless error message...token names should mean what the token means, not what it looks like.
- gburt 15y agoFor unexpected token I think what it looks like is more valuable. Unfortunately most English PHP developers don't speak Hebrew. =\
- archivator 15y agoPresumably, the tokenizer doesn't know anything about the meaning of the tokens it's extracting. It's the parser's job to attach meaning to tokens.
- burgerbrain 15y agoPresumably, the programmers should pick reasonable token names for the sake of other programmers. They're all just numbers to the tokenizer...