Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117833 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96450 invoked from network); 29 May 2022 19:41:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 May 2022 19:41:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 99A1B180211 for ; Sun, 29 May 2022 14:25:07 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,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: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (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 ; Sun, 29 May 2022 14:25:07 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 7D33A3200786 for ; Sun, 29 May 2022 17:25:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 29 May 2022 17:25:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc: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=fm1; t=1653859505; x= 1653945905; bh=baABeBwrhtBx4qAnQmIiG/ChQe4+euJuvRBMut8febM=; b=B SsTyE+9vEN6hBU+VbcpCHSk2/iJx3U8t/XRn4xkymVlwb9N/UR2Wyp2xWnumIVqs cdZE49Cooy2A3q6EGjKcUGYXaKqCzoTY9apcMVkuzZg2gqcLtIcNTl2IYbQ2dhM5 iU2Yq8PaCzHu9wv4XvHi4fkRnQ/C+V9cNSu7nQZBZJLfXZ2ftYROwnM/REEJQHjW VcgDh8g5ZhAxLN1vORucQc3FVJeAsP+K2yM9UxcvHCDTXT9Cgec7279FMRayUDkA jCUKZL66kVTGtiZ6+qTSXVAyJNgXjD/pTi45381sPw0f2L2hikiuxU9oKxgQ1fR/ 3ngATMwxOKl0wQ01xosFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= fm1; t=1653859505; x=1653945905; bh=baABeBwrhtBx4qAnQmIiG/ChQe4+ euJuvRBMut8febM=; b=m8JJz9J0XiBtJWHoPa+HUPR5WGRz5ziLGOm8muu0x5SU /1c2XkwaVSiTe8kmQ4H3S4keQMgUk7k8plSW4f9VIoL6znvQF5YHgc7cXxFe5VB/ LHomplZ449yVW70Zj0yNeoy/urY5tJ+qAEp/vWiynkqAf/rlWsuC8ZkmPh2Ht7Wd wtLyKb5GnTdCUNyf4w5lOVrlSCGKLf3prRDFbRFBGP6UXuV4SDbB6bNlqgGfmg6F UnIl01Y2EE449BBlob5vp8wC9C3VvY94iCijb5J8DLzJhPxRhCFpK5VHBBVoA+Xe tgaOfszNDP95Qe6gxR0tS+zh3Imt0m66GO2Jl/KQmg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeeggdduiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffkjghfufggtgesrgdtregstddtjeenucfhrhhomhepnfgrrhhrhicu ifgrrhhfihgvlhguuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqeenuc ggtffrrghtthgvrhhnpefgteeuhfeiffeggfffkedvffevhedvheejffefgedtgedtudef jeehgeehteeiheenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlught vggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 29 May 2022 17:25:04 -0400 (EDT) Date: Sun, 29 May 2022 21:25:02 +0000 (UTC) To: php internals Message-ID: <1d975edf-a2e8-4dd6-9f50-4cdbca0cc26b@garfieldtech.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13_42308869.1653859502690" X-Correlation-ID: <1d975edf-a2e8-4dd6-9f50-4cdbca0cc26b@garfieldtech.com> Subject: Re: [PHP-DEV] [RFC][Under discussion] Fetch properties in const expressions From: larry@garfieldtech.com (Larry Garfield) ------=_Part_13_42308869.1653859502690 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable May 29, 2022 11:55:56 AM Micha=C5=82 Marcin Brzuchalski : > > > niedz., 29 maj 2022 o 18:24=C2=A0Larry Garfield = napisa=C5=82(a): >> On Sat, May 28, 2022, at 4:44 AM, Ilija Tovilo wrote: >>> Hi everyone >>> >>> I'd like to start a discussion on a simple RFC to allow fetching >>> properties in constant expressions. >>> https://wiki.php.net/rfc/fetch_property_in_const_expressions >>> >>> The RFC proposes adding support for fetching properties in constant >>> expressions using the -> operator. I'm looking forward to your >>> feedback. >>> >>> Regards, >>> Ilija >> >> The enum-in-attribute use case came up recently in Symfony.=C2=A0 I'm in= favor and the RFC looks good to me. > > Personally, I'd start the discussion on https://wiki.php.net/rfc/object_k= eys_in_arrays instead as this might solve the need for=C2=A0 > fetching property in constant expressions. > > Cheers, > Micha=C5=82 Marcin Brzuchalski=C2=A0 Objects as array keys would not help with the attribute use case. It may be= useful on its own, but it does not obviate the need for this rfc. --Larry Garfield ------=_Part_13_42308869.1653859502690--