Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119434 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 95618 invoked from network); 31 Jan 2023 21:47:41 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 Jan 2023 21:47:41 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 73263180545 for ; Tue, 31 Jan 2023 13:47:40 -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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS19151 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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:47:39 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4C7AE5C0376 for ; Tue, 31 Jan 2023 16:47:37 -0500 (EST) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Tue, 31 Jan 2023 16:47:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm3; t=1675201657; x=1675288057; bh=+KoDvB5X7Ek72W9xpGM+PuZMB 6dDBPyggX61JePOBSo=; b=nvRK2/oXqYVs7IJ7S8S8tR+YmQdYA5DJetI5kuF1Q q+e3+YAIS88ql1UD/eQTjFhrsmJ1II3ic3EIG4JNLeXwRIpL6/J2kO0RSW4haMl7 wcGCYopluQOuQYcKO9JdMdVirI1vlXgsIWdzBG8IHO49cDwpM7Swq6jTQ+USVsNz +vQKkkXL44fifSQTFM0foh+iPMSAWBBBRdWRj5EFfZXMi+X5OyDW0R3NXjxOcBPB aHgUKq9/yxoguOU2+Vpo5GVSd4i1cGEhRYBz6rU0wZyl+7/14jGowKeL139lPkAD BtlapDnRAV+r7wvt6CHwufumOzxzGVNA3t4e/byDdHUGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1675201657; x=1675288057; bh=+ KoDvB5X7Ek72W9xpGM+PuZMB6dDBPyggX61JePOBSo=; b=kfepjp/Z6j2azxkWp hRqVoC/qxIsM2nOvAPid8jzakGC7EJB+R17NN3rhprD0lQFD4I84ZrVqIKy4hSCp n2TpSxEpO5g6Ret00twdKzyayaXBCVah3yQJhUR8oBIo4iGIdl5ZUg+MT9a+0OHM 7Ebfmz85DLU4G4VMdCqqWbJC1VXbKT5ri6cvL2RuKPbq6oH8t1aUgciBFmBqsp9i gd/E6fzWpjp14YA5iWQ8ebgKtJxT2SeXCilarpW0fnWtITdQRTx92mBFYOAb6mQS WRBLGDdP0ZXDuwDNy8E85lPFkEDFqTPJXw2dEp592mlxzKZT0bkOvMOuOclbOFLI WXkRQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudefgedgudehgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfn rghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrd gtohhmqeenucggtffrrghtthgvrhhnpefhgeejlefhfeduffduleevvddvgefgtdeufffg vedttdfhueeuvdfhieeludeugeenucffohhmrghinhepvgigthgvrhhnrghlshdrihhopd hphhhprdhnvghtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0ABF21700093; Tue, 31 Jan 2023 16:47:36 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-107-g82c3c54364-fm-20230131.002-g82c3c543 Mime-Version: 1.0 Message-ID: <169937e8-f390-46a1-a6c2-e2294a95131c@app.fastmail.com> In-Reply-To: References: Date: Tue, 31 Jan 2023 15:47:15 -0600 To: "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] [Discussion] Typed class constants From: larry@garfieldtech.com ("Larry Garfield") On Tue, Jan 31, 2023, at 3:01 PM, M=C3=A1t=C3=A9 Kocsis wrote: > 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 resurre= ct > 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 One question: public const int TEST1 =3D C; In context, is that supposed to be TEST =3D C? That example in particular is very confusing to me; I don't actually gro= k what it's even doing. Aside from that, everything else looks good to me. --Larry Garfield