Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117406 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 47776 invoked from network); 23 Mar 2022 17:27:38 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Mar 2022 17:27:38 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DCC3718053E for ; Wed, 23 Mar 2022 11:54:24 -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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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, 23 Mar 2022 11:54:21 -0700 (PDT) Received: by mail-ej1-f53.google.com with SMTP id qa43so4683484ejc.12 for ; Wed, 23 Mar 2022 11:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=1BOwAQr9KfN4/8lEo8KorKyAYQE49p+AZsVwr9lB+bI=; b=ily7r7166OCyvce/VFnjvVbLNAobsXLWCncesQDzUtsZ7LVdwsjox5HVnG64XQOCGA jXzf2XqNzln/bZsqmP4eJltH7wV+3Hv/Q5BCW4MIDobS40fccIp/c/w3RC4aE3mD4EZz fCRvayRmdC6IukhPyGeb0WHnlAGK6PidvvzCZ8MWhiuJohFaHpy/MtPjOeJ7z+NpX/nJ dcRXV9A2n7mARgiKFiea8vHJSuMUVlWEBThWIzzuGbouMWaGEwHAeg2qZPp47Pzqtng4 IO0IzwHahP6SH7xBq66nRLS7QrM/2abQkglJNvMreskHLE7sIkH8HLJFIFqQqRl2Z4my hvMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1BOwAQr9KfN4/8lEo8KorKyAYQE49p+AZsVwr9lB+bI=; b=KvThB/hFSaIJErqTWhDvd3jzNuhL9SqSOsWZwp/kpbEY6Ayga0+pDt0aoJQNeVGUgl GU8hRi3sioio5hWgtUDhFFQYNi+Z2qedg0Jj+CL++ZDNnR3v5uXZmELywAHjPhw9JgDV FZEyyIM/THszIv34wpPNAY0tI858xImjb9Ivts6u3Rcxy+eiTF0jvjTInvlDU3lFb2xO 3jot/hEbbzR4DipJ8bN30uVhpE+Eh5izdn6ajG7m/C8qKS4C4Q1ZnHUQaIiXhcqNpMIQ G8aA3zDwkHynwxNT6SiciIscCdyMSrnCTO5VNG/fL85aolqxxCWJcBrmcEC96VUfjK1H rIZg== X-Gm-Message-State: AOAM5337wGzwzVQ0FjOrnJah7LKhlaD5wrxZomvqSKOYpJq5i2MyWZBj gYJDEeCbsh2Okh5vowJC6lC8uJICZfc4Otwq+qqNyX/fCGM= X-Google-Smtp-Source: ABdhPJylU34q6zBPbMW7/z/6Ol3uhO/tIvUMrysZZtyeZ3v5sJaX7BsepnXXWn3LL/RQTkNdDguGMf116vH/RBiPN2c= X-Received: by 2002:a17:907:ea1:b0:6df:7900:e4de with SMTP id ho33-20020a1709070ea100b006df7900e4demr1654951ejc.26.1648061659287; Wed, 23 Mar 2022 11:54:19 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 23 Mar 2022 12:54:08 -0600 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000c512a105dae74124" Subject: [PHP-DEV] Typed constants revisited From: mbniebergall@gmail.com (Mark Niebergall) --000000000000c512a105dae74124 Content-Type: text/plain; charset="UTF-8" Hello All, In June 2020, Benas Seliuginas emailed this list ( https://externals.io/message/110755#110755) to gauge interest in typed constants. An RFC (https://wiki.php.net/rfc/typed_class_constants) was started and had an accompanying PR (https://github.com/php/php-src/pull/5815). At the time, Nikita Popov supported it for overall language consistency, and Sebastian Bergmann +1'd it for overall language consistency as well. The PR has since been closed without being merged, and the idea hasn't progressed since. I'd like to revisit the concept, gauge current interest, and pick the concept and work back up. Any more discussion items for or against the idea? I'm willing to do the work to pick it up where it was left off and get an RFC proposed through the normal process, and a working PR. This is my first foray into the PHP RFC process, and C code is not my forte, but I'll take it on. If anyone would be willing to pair/mentor/co-author with me, please let me know. Either way, I'll plan to work on it. This is the first of several concepts I have been tinkering with and seeing practical uses for. The next phase of work with different RFC would take this further with const inheritance, where const type must match. - Mark --000000000000c512a105dae74124--