4 ms·
Look at 759 ! That's actually a real error message. https://en.wikipedia.org/wiki/Scope_resolution_operator#PHP https://en.wikipedia.org/wiki/Scope_resolution
by hyperman1 8y ago
Look at 759 ! That's actually a real error message.
https://en.wikipedia.org/wiki/Scope_resolution_operator#PHP https://en.wikipedia.org/wiki/Scope_resolution_operator#PHP
What were the PHP guys smoking to consider this a usable error message?
- dozzie 8y agoI know you'd happily bash PHP author for such an incomprehensible error message, but it's not his own message, but something that comes from Yacc/Bison, when the next parsed token is not what can legally follow whatever the parser read up until now. It's just the tokens (or maybe just this one; I haven't read the grammar) were not named in currently canonical English.
- hyperman1 8y agoIt wasnt formulated nicely, I grant you that. PHP bashing is easy even if the language caused big upsides for a lot of people. But a developer is responsible for the consequences of his choices. If you name your tokens in Hebrew with consequences for error messages, you know you're gonna raise some eyebrows and cause pain for your colleagues. The simple fact that the message is in this list proves that I am not alone with this opinion.
- seandougall 8y agoIt is, notably, just that one. If everything were in Hebrew, I would personally be perfectly happy to adjust. But being the only non-English token makes it a completely unnecessary source of cognitive load in a language that is already criticized for its standard library’s frequently inconsistent use of grammar.