Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110471 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2660 invoked from network); 10 Jun 2020 21:49:16 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Jun 2020 21:49:16 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7EFFD18050A for ; Wed, 10 Jun 2020 13:33:16 -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=0.6 required=5.0 tests=BAYES_50,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-il1-f193.google.com (mail-il1-f193.google.com [209.85.166.193]) (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 13:33:16 -0700 (PDT) Received: by mail-il1-f193.google.com with SMTP id g3so3288469ilq.10 for ; Wed, 10 Jun 2020 13:33:16 -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=f2DSslDps13suRVse1AdidadnvzDTXaZae2YLSDFsqE=; b=goIYgr23Dvm1l9PTI5Qk4ltliu/wrwPQHgNZRyu3yF9sbnYfcKsmaBAVeY+ezmnZtG wXJKoR4N3J8B6VaSBox9asolzoVyTpsi/KS65vjM8j/vvBJ2N82o6EnIKXJN/JRUTM2L n/d31IHTYNh86jqaxN8KCh2VKHzfnadxPn4ajQE+Mhos9jUHGk0iAzmLUD6uY1H86WW5 u23j/ALTJnmANEknDvk/ai9UCUKXmemgRbi7qZxwYZMUL+3Q7GmdwfN+dGOMbDMIHQFV jTOCylbupS+GeLlY12fBPYix5EJyb09iQGcA652TSA5xM2Dtiqwy7Z/ubI5IucQz0ooM LcgA== 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=f2DSslDps13suRVse1AdidadnvzDTXaZae2YLSDFsqE=; b=jtOzUEvuCWUkAI4k6NDWqWG+bj0QaLPtfCWXHbYzDLK/XPwPKZ7IGJsaeh66WdAJLO MyrReZv94HXFCQhCr20X9ZoAP8ls1zjh4RVCbhBL8V4bzfD/lJBEBIRWtou/RnHnfKlB Yp2V6NfYHMf89cjhc3yo+oTAcI4mBns5KmmizZ30OEieJOYdGV1tG+WLvjEJoVC04mqG s9wQKPFadQZiRNQU2oH6/C8PqrhJvN7KYhkTCRkHPUoJ1qBWRMHSzTmSWN7TqVX/bNio bZH4O2L/Hnd30lZWBabKpp7L0OAzVcif2be2B0ozt4A8acxLeq2GC0Hcpwt5hYXE+OMk 6/ew== X-Gm-Message-State: AOAM530fVIFu8D6aEFdEw8VBjHpExXL/nKRRYpMxeDjMLcCLiPkbBDoy tdnmlb4Ki5uKyKuZQfMe63UDBdrJp322/33TR7M= X-Google-Smtp-Source: ABdhPJxLzjWhxl0897x7zyJ9f8oHN5HORfSsBVxJdPFrzC0ePxrKEK7xoW1VFZOfsTeKwAPMANam5STSVxPuHYB5KrQ= X-Received: by 2002:a92:c04d:: with SMTP id o13mr4780496ilf.201.1591821192881; Wed, 10 Jun 2020 13:33:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 10 Jun 2020 14:32:46 -0600 Message-ID: To: Claude Pache Cc: "G. P. B." , PHP internals , Kalle Sommer Nielsen Content-Type: multipart/alternative; boundary="000000000000bf6c2305a7c0c0dd" Subject: Re: [PHP-DEV][RFC] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON From: ryan.jentzsch@gmail.com (Ryan Jentzsch) --000000000000bf6c2305a7c0c0dd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 as = 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 tha= t particular joke has outworn its welcome in the community after repeatedly CAUSING SUPPORT ISSUES." -Stan Vass (emphasis mine) "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 Schr= ijver "It=E2=80=99s the same argument everyone else is giving, and really it all = 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 wi= th something a bit more friendly. ...What is so hard to believe when people see UNEXPECTED T_DOUBLE_COLON on LINE 23 they are gonna look for a double colon on line 23?" -Chad Minick 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 renaming > tokens? > > One parsing error that I still find dreadful after more than 10 years of > PHP coding, is: unexpected T_CONSTANT_ENCAPSED_STRING. Although > T_CONSTANT_ENCAPSED_STRING is like Hebrew for me, I=E2=80=99ve learned wi= th time > that when I get such an error, it means that I=E2=80=99ve most probably o= mitted or > mistyped some punctuation mark somewhere. However, PHP is unable to tell = me > where exactly is the error: it tells only the line number, and I have to > carefully scan the entirely line to find the place. Sometimes, I resort t= o > split the offending line in several ones, so that I could get more precis= e > location info. > > So please, let the parser tell me not only the line of the error, but als= o > the column. Then, it doesn=E2=80=99t matter how the offending token is na= med 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 > > --000000000000bf6c2305a7c0c0dd--