Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119433 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92535 invoked from network); 31 Jan 2023 21:01:31 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 Jan 2023 21:01:31 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 547061804D4 for ; Tue, 31 Jan 2023 13:01:30 -0800 (PST) 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.8 required=5.0 tests=BAYES_50,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,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-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 31 Jan 2023 13:01:29 -0800 (PST) Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-16332831ed0so21063556fac.10 for ; Tue, 31 Jan 2023 13:01:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=2ToP2rs8LIgLc1Dnq5QqPEO0NBW/QFT2fzb7QtuKitw=; b=KaQKcj7FLwzuuY58nMzlG3fIrnlKSApy7CyvH8pApgOyCbzRjj26ESBrMhYv4DtrFh ZRW3YK6tUMMfzY8nibJLvANeEoBboAtFUvkrAg7q3m7oIdpPhomTz6334giFO9YMW7qR V6O1G8tOFK+9LLub8WzCzJZaoRJsUBDJgiy3Od6kNT+UC0vWpsvMvtmqPF0w3t83fs/P clxKfOqtHUpMT1EL9jJfcLPWOq+SowQPqjR05hx4Bqv0ZPGBeTjugeHwMJpFoNdMU+Bc zw0TQjgw2tCKQOttiEdV062sAVTzB76mSDbmCWE7XWxi7gJR8s/X6l0Jp3DeWbW5+ugS szFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2ToP2rs8LIgLc1Dnq5QqPEO0NBW/QFT2fzb7QtuKitw=; b=xhhKIP7jzPlOrEv8nk++t3JXgjH5ffALJ75dC7dP3zrxoXkC5BOhJv0x47U00EOSrR 5bL6JtFNwJIcnF8x0uy4sQ/9KyphfLXqmiv66Ii8MB/GoTaffC7Ij+jyvNU/UU2m0TP+ jFJ7r8zTkwdVWDGfN/zWgU67dFf+YtllPoWtxFzlc2xMTB7YKrjt9E0OVB4urxSN2DvT 3X4Mwf35/7ixz6C7ib9dyXfLUUwXDDsjjX/bvNsJVylURKDW+o7lwPt4I4XFMGGOBt9A LkTFGvssV3rqknI6Gnh3/MgyOjs1ex2rNTJC0myqhvUnZ48XOcq6HpVPjE98HZM/T2c7 aM6Q== X-Gm-Message-State: AO0yUKVuKQPfh3zwLfsn5Vxcpe4QtiRVR0lwfJWylXaNDMQP2UN0725o LbpzO8rGEIQX2ROC5iinntypaVa+zwBPD49owelKwdrDVag= X-Google-Smtp-Source: AK7set8dhRm4kb8oLLk3Gs9NWigm30Y0oy14NGT+iU4TjhCTqa9MsLDJh2fAXgU3h4lVPaIska6ANH8EoNRpqcY+l8Y= X-Received: by 2002:a05:6870:65a1:b0:163:32c8:bb97 with SMTP id fp33-20020a05687065a100b0016332c8bb97mr2472998oab.61.1675198888845; Tue, 31 Jan 2023 13:01:28 -0800 (PST) MIME-Version: 1.0 Date: Tue, 31 Jan 2023 22:01:17 +0100 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000b2a83405f395a2d8" Subject: [RFC] [Discussion] Typed class constants From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000b2a83405f395a2d8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Everyone, A few years ago, Benas Seliuginas announced the "Typed constants" RFC ( https://externals.io/message/110755) which apparently had a positive reception overall. Unfortunately, there were some issues with the implementation (namely, with the parser) so the RFC was stuck. A few weeks ago, I reached out to Benas whether he intended to resurrect the proposal, but due to time constraints, he couldn't, and was OK with me continuing it. With some help from Bob Weinand, I managed to overcome the implementation difficulties, and adapted it to the newly added type-related features. Please find the updated RFC here: https://wiki.php.net/rfc/typed_class_constants. Regards, M=C3=A1t=C3=A9 --000000000000b2a83405f395a2d8--