Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110472 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7451 invoked from network); 10 Jun 2020 22:22:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Jun 2020 22:22:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BE855180510 for ; Wed, 10 Jun 2020 14:06:11 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 10 Jun 2020 14:06:11 -0700 (PDT) Received: by mail-vs1-f51.google.com with SMTP id m25so2155553vsp.8 for ; Wed, 10 Jun 2020 14:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FpQETgCcBnYLXX3yscip22Swjx74BxQ4CwRGFpZ3jcw=; b=T7pGXZ3aylwCFVnizWbToobvbmkiSbZ99NvU9SeCsQQ3wlSIaGjZZAYKJHrn78hSHH T87hR6kx5cuDp2nO6yBwsPU65AaBd6/mEtaGfC3ayRjk2Vui7R8a9ahxMAOF1L+IGaIm JZmyLwfFjkOYGQ6zzyZWms7xGrYLwXmw7pHDIsDezQFSsB9Grwcjn2GNJULLqUdjBQua FPsrNGwQAu5MOM02J6B6LCszWLB0G1vmEX2xXXBknnzfTBnAyYwixWxSTOfK4z0u7K6Y fvmyMIQcbiag9kYOdMoR66Dg71dJ5dzccy4x7LoqI6nPkzrG3fpLRwBZA8EzP88SAEqJ 1bcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FpQETgCcBnYLXX3yscip22Swjx74BxQ4CwRGFpZ3jcw=; b=Zq+aOPPEnVGhRO12rk9YX0asyWF5vHsE5vfouAaPv2/mk9xFChKHwI5ZHtBvM4ux49 5ka/7KMk7yVGuerWVNsM45minOQH4E5zVtfR69HlaM6gAHSxoQ19aqFTfLKUBGAQy7vs y5yqyON2lA7tK7+avJb2dN7QqSdyFPvO1qodIGwyT35I27cz07n+nR2yr4iNHK79Fujx yQ/6xQ/qvaD5qfxPHG9an4fXMX8ASqLz4Dl+d07EtWPcPY83YlWANojKJUt35J7Glb3F NmZ+TH0piZkLLcNwmvDqkvF0e6gD5Kob6XHKNdIXCpu295zQxG0IGPpam0q9QZYxCxXF cOMQ== X-Gm-Message-State: AOAM531+jngfwxnMBfZ2Vhf2sggmVk6yjn9UOHOCEkfhCwdv3jmkZ9aG YABjh7L2wyWnXQyw5GsWhKh6FHQVSHbaPZf8qHo= X-Google-Smtp-Source: ABdhPJwjt1z8R8V25M6zDOdz2iTR1ufr59khKljWm3cqAgr6FjhWdIYQMi1xiTfrPnK/25Be2gF6v+aODmcG9ISazbE= X-Received: by 2002:a67:d597:: with SMTP id m23mr4356034vsj.209.1591823170295; Wed, 10 Jun 2020 14:06:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 10 Jun 2020 17:05:58 -0400 Message-ID: To: Ryan Jentzsch Cc: Claude Pache , "G. P. B." , PHP internals , Kalle Sommer Nielsen Content-Type: multipart/alternative; boundary="0000000000009c5b1c05a7c13627" Subject: Re: [PHP-DEV][RFC] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON From: chasepeeler@gmail.com (Chase Peeler) --0000000000009c5b1c05a7c13627 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 10, 2020 at 4:33 PM Ryan Jentzsch wrote: > OMG the trolling continues even today with this nonsense. Disappointing. > Calling T_PAAMAYIM_NEKUDOTAYIM a non-issue is simply wrong and here's why= :: > "People don=E2=80=99t ask for the other parse errors even half as often a= s they as > for T_PAAMAYIM_NEKUDOTAYIM They do so because it looks like gibberish to > them, so it looks unlikely to be a common thing you can Google, nor it > gives something recognizable to start with [sic] Yes, we all acknowledge > it=E2=80=99s an easter egg joke that refers to the creators of PHP. But t= hat > particular joke has outworn its welcome in the community after repeatedly > CAUSING SUPPORT ISSUES." -Stan Vass (emphasis mine) > > I agree that it isn't the biggest issue in the world. If we had to give up one of the more impactful changes in order to implement this, it would be a different story. But that's not the case. There is no trade off here. The RFC even contains the updates required, so it's not going to take up anyone's time that could be spent on other features. > "It's a minor change and an annoyance to a lot of people. Yes, by not > changing this you=E2=80=99re annoying thousands of people." -Alexander Sc= hrijver > > "It=E2=80=99s the same argument everyone else is giving, and really it al= l comes > down to this.: > Nostalgia is valued over clarity and consistency. Do you guys REALLY want > to claim that?" -Chad Minick > > "...yes, it is broken, people have to Google or ask around for a very > unclear error message when for the most part errors are (and should be) > self explanatory > ...Two things are broken: Either the token is named badly, or the token > names shouldn=E2=80=99t show up in error messages at all and be replaced = with > something a bit more friendly. > ...What is so hard to believe when people see UNEXPECTED T_DOUBLE_COLON o= n > LINE 23 they are gonna look for a double colon on line 23?" -Chad Minick > > Honestly, I'm not a big fan of the following argument: "However, PHP is for most people their first programming language and therefore may not have the instinct to do an online search and will end up frustrated." - Googling is such a core skill for programming, that if they can't figure that out, they don't need to be programming. However, that being said, I don't think that argument is even needed to justify this RFC anyway. The only place this MIGHT cause an issue is unit tests that are looking for that specific string. While I'm not a fan of the "just use find/replace" to update things argument, I think that's a perfectly valid one here, given the uniqueness of the string being changed. > Once again I plead for logic and sanity. At least have the courage to put > it to a vote. > > On Wed, Jun 10, 2020, 12:28 PM Claude Pache > wrote: > > > Hi, > > > > I appreciate the effort to reduce frustration in PHP coding. > > > > However, T_PAAMAYIM_NEKUDOTAYIM is a non-issue: you learn it once and > > you=E2=80=99re done for the rest of your life. > > > > May I suggest an improvement that would be much more useful than renami= ng > > tokens? > > > > One parsing error that I still find dreadful after more than 10 years o= f > > PHP coding, is: unexpected T_CONSTANT_ENCAPSED_STRING. Although > > T_CONSTANT_ENCAPSED_STRING is like Hebrew for me, I=E2=80=99ve learned = with time > > that when I get such an error, it means that I=E2=80=99ve most probably= omitted > or > > mistyped some punctuation mark somewhere. However, PHP is unable to tel= l > me > > where exactly is the error: it tells only the line number, and I have t= o > > carefully scan the entirely line to find the place. Sometimes, I resort > to > > split the offending line in several ones, so that I could get more > precise > > location info. > > > > So please, let the parser tell me not only the line of the error, but > also > > the column. Then, it doesn=E2=80=99t matter how the offending token is = named if > you > > know where it is. > > > > =E2=80=94Claude > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > I have a reputation on this list for being rather conservative about changes. I'm somewhat sympathetic to the symbolic reasons for keeping it around. I don't think such reasons outweigh the benefits though. The only valid solution I would support that didn't rename the token would be if we removed that token from the error messages altogether. I think that would be more likely to cause issues, though, since there could be tests that need SOME sort of token specified. --=20 Chase Peeler chasepeeler@gmail.com --0000000000009c5b1c05a7c13627--