Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110498 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58870 invoked from network); 12 Jun 2020 12:08:38 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Jun 2020 12:08:38 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5A675180211 for ; Fri, 12 Jun 2020 03:53:00 -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-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) (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 ; Fri, 12 Jun 2020 03:52:59 -0700 (PDT) Received: by mail-il1-f173.google.com with SMTP id x18so8396165ilp.1 for ; Fri, 12 Jun 2020 03:52:59 -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; bh=dgbtGvo52EDa/fjMqXi+NHX9WoXFRiY2REjP7UkdcG8=; b=cwxlwb/e/Y0W5yMLQL0eitoo+zpumz+1OuVp+/NAJ5hWQAexcf3j59DC+THuxupHIq B6zxWJYtbRxZuQ16blN7T09gOJ/9qc347r6P4U+ZdPxbRdzxSBRdvekcuq2PqVQITEyZ tu19gIgPPCDTMwEIF8J5iJjS2j985k/G+HO1tcRb7Il6JI/Sgu21A2k21BqXg1vZnBsW lKCuGmsPgJow43prCiPILPtJc4g9D96dHJ4ouEMAeDN5wdBqeVF/+AUH2akKkbC5MORk 87eW+YHl7JAwbBfiCo8klJ1qkrxiwfX4ePyCPrsVg9X0fQq9H5Cr6wb3rRxgIchHiF9o oNbg== 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; bh=dgbtGvo52EDa/fjMqXi+NHX9WoXFRiY2REjP7UkdcG8=; b=uZy+VpGvIqfsCvaREZtXN6P3MA8H2soFzuePTj9q0RxE1OIkk9U1A+I2qM7K/vhBJ2 j68QrKfPCxCAS/b6mc9a25SRF8Jn5V9+LTUK+XoWs2+byOpT/C4Bkv0cnptUeTIkBAz8 k6TIlUN3+OaEtUhpon4UsYHvnO5IXnH44uk+sxn1vRzB3i5acRBeZYlK5jT0b4x0IedC 79koLi4Rhzp7ha32lhbCPm5+CkIgWbjslo4qjm6uUB8TGrEdsZk3b6tnrIjf5cp3lC9F bIOx6+23DPRnkvDZvoyH147GAVZQ8+AIQ95Le3/dbvbWXNNHl7BhQyAUkSzGiozL9m6D sVbw== X-Gm-Message-State: AOAM532W3865MzzLFjr1le0QIjZaHnRn2WgtsykYfNty2mZqeY7Yf7dX L0+t+LWbNDQKnbUmM9Q3+KkbjT6ySt6VbG/2jqUM8+yF X-Google-Smtp-Source: ABdhPJyWTXqh+qYC8TeWWxhXNc8ev0UtdAKVwpNb1v8ONnYVgzztZfGnq/XvdmMubD+WURfEBMRhnQZ5qK92eDsPp3M= X-Received: by 2002:a92:4852:: with SMTP id v79mr12099445ila.172.1591959178316; Fri, 12 Jun 2020 03:52:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 12 Jun 2020 11:52:45 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000520f4c05a7e0e18c" Subject: Re: [PHP-DEV][RFC] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON From: rowan.collins@gmail.com (Rowan Tommins) --000000000000520f4c05a7e0e18c Content-Type: text/plain; charset="UTF-8" On Fri, 12 Jun 2020 at 10:30, Jakob Givoni wrote: > > Token names shouldn't show up. Everyone is agreeing with that statement. > > Universally. Let's fix that problem rather than create new ones by not > > addressing the underlying issue. > > Are you saying that this RFC is creating a new problem? If so, please > elaborate. > There is a small nuisance for anyone relying on the exact output of the parser messages, and a small chance of further confusion from existing users ("what's T_DOUBLE_COLON, I've never seen that before"). To emphasise: these are very small nuisances, and not a reason to decline the renaming. If we're going to change the errors anyway, we might as well hide the token names at the same time, for barely more impact. If I don't see any objection, I will tidy up my patch to do so this weekend. If that change is made in 8.0, renaming the token is, as you say, almost entirely internal. On Fri, 12 Jun 2020 at 11:04, Guilliam Xavier wrote: > Could this be discussed rather in the "Improvement to errors" thread? https://externals.io/message/110276 I will post a new thread to discuss details when I've learned more about what's actually possible with the current parser. I may be wrong, but I believe the examples given in that message would require a completely separate implementation, because they are raised at run-time by the ZPP macros, whereas the ones discussed in this thread are raised directly by the parser. In both cases, I think we know roughly what we'd like to see, so there's not much else to say until somebody looks into actually doing it. Regards, -- Rowan Tommins [IMSoP] --000000000000520f4c05a7e0e18c--