Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114273 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86702 invoked from network); 4 May 2021 15:16:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 May 2021 15:16:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3E9D318053A for ; Tue, 4 May 2021 08:22:14 -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.1 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 ; Tue, 4 May 2021 08:22:13 -0700 (PDT) Received: by mail-pf1-f174.google.com with SMTP id e15so7823178pfv.10 for ; Tue, 04 May 2021 08:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=a8TtOD3e6Z4+pjM9s+oCZLnfpkiMNJjdDrdRvWo6pIE=; b=vc13ifjbywWjxbuUv0gv1nYA67VAW4LpydEwhi+3OeuiRYchU8ZyMkiorktFJ+lujz E55axu47WXNlFnwZ3r7Opkdc5UHT3c3+FiF1RtGKaHeiWTtVJIuLtxvatYLqzghCNdxK bHqS4MDoBBgaWjsGfcHXhnAofv5l6KjsEO7eFJShNfeCLw1OPrELiitTwsgZ6xj/R/ds Vkw19z0nc6oGlIA7IVLB+chIHIdVZeVnRP7l0f5b+zr+8CcgBj+qRjURuUjcn+pEeffX Qj0NOTUltbhMCC6d7yTxZYMtmPIdPsoGGgo5njcS++vy8ckV5Sadezl4ID2VhUvJQP+Z ZGaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=a8TtOD3e6Z4+pjM9s+oCZLnfpkiMNJjdDrdRvWo6pIE=; b=ca2yTcUhJahiqeo+Loa8jXBFMz6BDnzVAbGMbNObYl8bWO3m+vgVry1eZGmNuKsjZj JfRnKP23T5e3/WUov+zAh7UZXQuJgE7U1KXM6UNd0wqN+il9VuFbwwZBrn5aR/7QOMMQ I3SnTdsPBrMz8CbgL00wyRE9vHF/2M+RJvAMvcDHkjJveBUFa4g/hSRXbyP0R95LPro0 NltXeM6UqFNwv1425vFf49UelhYJ8Eka1sYImINuNktkppJN50gdYfpmUO8Sfn7zT5ZC RH0MtTBLw4wdeY54hZSbQKZNcG98D5JfVnmruIpHMfN2XUwPE+Kf6JqyUDVr4I1Bl194 0yKA== X-Gm-Message-State: AOAM533p3w1pLnj9ccQ88Uw8eZvIJUxzVqjqeSAt4J5DJE+VDq40nUn3 Bu6X9awCiOQ/RC+uVPorE37u24PC6IJXPDdytW3p3i8nzZ4= X-Google-Smtp-Source: ABdhPJyVvv7idsWTJBkiwp2+Ozwe9pUTSXYytmNqGDEmD2GTmB2yJ4gAiuYtmQdMHe21pX1k4EzYNLkrbFbzbZBdA1Q= X-Received: by 2002:a65:4481:: with SMTP id l1mr23379991pgq.42.1620141730805; Tue, 04 May 2021 08:22:10 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 4 May 2021 17:22:00 +0200 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000059baa905c182a4dd" Subject: [RFC] [Discussion] Final constants From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --00000000000059baa905c182a4dd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Everyone, I've just written an RFC for final constants: https://wiki.php.net/rfc/final_class_const. The prior thread can be found at https://externals.io/message/114066 In my opinion, the main value proposition of this RFC are the following: - people can make their intention more clear that a constant shouldn't be overridden - it can help fix an inconsistency in the language - the engine can infer the value of a constant in case of references via late static binding M=C3=A1t=C3=A9 --00000000000059baa905c182a4dd--