News for hackers. Stuff that matters.
Re:Including “And. And. And. And. And.” in a Google doc caus... by astrange on Thursday May 05, 2022 @09:16PM (#31280112)
This is the strangest parsing fact I've learned since PHP having a token named T_PAAMAYIM_NEKUDOTAYIM. (Because the parser was developed in Israel.)

https://stackoverflow.com/questions/592322/php-expects-t-paa...

Re:Including “And. And. And. And. And.” in a Google doc caus... by nonsince on Friday May 06, 2022 @02:38AM (#31282005)
I don’t speak hebrew but someone online said that this is an unnecessarily literal translation of "double colon" and it’s not what most developers would call it. Take that with a grain of salt though.
Re:Including “And. And. And. And. And.” in a Google doc caus... by pferde on Friday May 06, 2022 @03:30AM (#31282368)
The history of that entire fiasco is quite comprehensivly summarized at https://phil.tech/2013/wtf-is-t-paamayim-nekudotayim/ .
Re:Including “And. And. And. And. And.” in a Google doc caus... by inimino on Friday May 06, 2022 @03:51PM (#31289038)
What a childish rant that blog post is though...
Re:Including “And. And. And. And. And.” in a Google doc caus... by neycoda on Saturday May 07, 2022 @08:08PM (#31299870)
That was a nice history lesson actually. I remember being confused at the error message, looking it up, being confused at the explanation... because I hadn't learned static calls yet. I may not have even understood classes at that point, but that was way back in the day.

If PHP support has to handle the same stupid question about the meaning of a very unnecessary term that's confusing people and causing more support requests than anything else... then it made sense to change it.

I'm glad I read the blog post; it clears up a LOT of thoughts I had about the error... calling it childish seems off. Maybe you had a dog in the fight at some point?

Re:Including “And. And. And. And. And.” in a Google doc caus... by inimino on Monday May 16, 2022 @10:24PM (#31405404)
> Maybe you had a dog in the fight at some point?

No! But read the part where Rasmus Lerdorf "beams into" the conversation and his opinion is dismissed with "let's take a vote".

I mean, if you wanted a language that wasn't intentionally designed by Rasmus Lerdorf, you kinda picked the wrong one. This is what I was referring to.

Re:Including “And. And. And. And. And.” in a Google doc caus... by mike_hock on Friday May 06, 2022 @02:58AM (#31282135)
Seems plausible since afaik the other constants were in English, so this seems to be a developer's joke.
Re:Including “And. And. And. And. And.” in a Google doc caus... by neycoda on Saturday May 07, 2022 @08:10PM (#31299893)
It was a joke, a troll really, that just gave PHP haters something else to deride the language with to people who don't know it that well.
Re:Including “And. And. And. And. And.” in a Google doc caus... by krageon on Friday May 06, 2022 @04:46AM (#31282891)
If you look it up, this token can have two names. It is indeed a double colon :)
Re:Including “And. And. And. And. And.” in a Google doc caus... by stavros on Friday May 06, 2022 @02:40AM (#31282017)
Oooh now I wonder if it literally means "dual intestine".
Re:Including “And. And. And. And. And.” in a Google doc caus... by Pyrious on Friday May 06, 2022 @02:52AM (#31282091)
Nope, it's literally "twice colon" where colon is specifically the punctuation mark. פעמים נקודותיים
Re:Including “And. And. And. And. And.” in a Google doc caus... by stavros on Friday May 06, 2022 @02:53AM (#31282102)
Ahh dreams dashed.
Re:Including “And. And. And. And. And.” in a Google doc caus... by CSSer on Friday May 06, 2022 @02:58AM (#31282139)
I thought we were talking about colons?
Re:Including “And. And. And. And. And.” in a Google doc caus... by raverbashing on Friday May 06, 2022 @03:29AM (#31282366)
Dashed? Em-dashed? Hyphenated? Or just subtracted?
Re:Including “And. And. And. And. And.” in a Google doc caus... by cobbal on Friday May 06, 2022 @10:33AM (#31285597)
U+1F4A8
Re:Including “And. And. And. And. And.” in a Google doc caus... by omnicognate on Friday May 06, 2022 @03:20AM (#31282315)
Widely known because the token names were surfaced to users in error messages, so some common syntax mistakes would produce deeply unhelpful "Unexpected T_PAAMAYIM_NEKUDOTAYIM" errors. Hopefully they eventually did something about it, but it was like that for years and was one of the many things that put me off PHP for life.
Re:Including “And. And. And. And. And.” in a Google doc caus... by JadeNB on Friday May 06, 2022 @05:42AM (#31283237)
> Widely known because the token names were surfaced to users in error messages, so some common syntax mistakes would produce deeply unhelpful "Unexpected T_PAAMAYIM_NEKUDOTAYIM" errors. Hopefully they eventually did something about it, but it was like that for years and was one of the many things that put me off PHP for life.

One can like or dislike PHP for a variety of reasons, but surely being put off it for life because a non-English string is exposed to the end user is a bit much.

Re:Including “And. And. And. And. And.” in a Google doc caus... by omnicognate on Friday May 06, 2022 @06:29AM (#31283534)
As another commenter said it was "one of many things". Also, it's not the fact that it was non-English that was off-putting. It's more the fact that the T_ identifier was used, presumably via a macro.

People are often defensive about PHP, but at the end of the day we choose our tools. I wrote a significant amount of PHP for a brief period and out of maybe 20 or so languages I've used professionally I found it by a wide margin the least pleasant to work with. Supposedly it has improved a lot, and I'm glad if so. But I have no desire to use it again, and am unlikely to ever have a reason to.

Re:Including “And. And. And. And. And.” in a Google doc caus... by josefx on Friday May 06, 2022 @01:09PM (#31287540)
Also the only information available to the developer when it was added in PHP 3 in 1997, good luck Googling that error. They didn't add the actual token to the error message until PHP 5.4 over a decade later.
Re:Including “And. And. And. And. And.” in a Google doc caus... by chris_wot on Friday May 06, 2022 @06:01AM (#31283367)
No, it shows a certain sloppiness around the language. This has all been cleaned up and a lot of effort has gone into resolving most issues in PHP.
Re:Including “And. And. And. And. And.” in a Google doc caus... by j0057 on Friday May 06, 2022 @06:11AM (#31283425)
"One of the many things", so not the only thing, but a thing nonetheless.