Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117825 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68599 invoked from network); 29 May 2022 14:40:31 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 May 2022 14:40:31 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F391218037E for ; Sun, 29 May 2022 09:24:02 -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,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 wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (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 09:24:02 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 3D5F73200912 for ; Sun, 29 May 2022 12:24:01 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute1.internal (MEProxy); Sun, 29 May 2022 12:24:01 -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=1653841440; x= 1653927840; bh=Oanisgxv473jHKCaa7J6/1B2xcQQzMFfRbVwF718E0Q=; b=v ZMr12Eyej/7/X/hWylaaco030V3iqfLCZsOcA62QLjdvaIzspOhK64w3kSr66QIT v8Sp74YgNN75zBWdMg86iv9R066IgZcYO5lykM4cuuyfpqYIJ9XU9Id6vbXf+373 8/jWw/mt/K/oHrDwcZwLFG3SX4kFmygHmGz2qAoAZy70QZNGw6s3rzdATO0AtGpc pqdDXAm6Ed66a+bY8hbDejbvUwO4o3Vqti+XKWhdoy85e/Ev61TVtj7aouwjaaTQ ArUx9cOFdECHkfBjuBL5Vlw1UJwCrwuPtVADcSNaFazil5Mv+MI61Vy2DNHZD8P7 Zi7CGiSpr1Rz5Fy01Lbkw== 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=1653841440; x=1653927840; bh=Oanisgxv473jHKCaa7J6/1B2xcQQ zMFfRbVwF718E0Q=; b=dsvEeT47VE0tBtt/Jo1uIRcwf8N29fK6NsS7yUa9zWcv VmDqNAzYYWvZdkyibo3CFa3X+ohhJjuufuuHHMHQBLzumWSv86fNzeG3/fuPk8Vi nIzWUaNl4ZgA0c8VjFQhJAGaWj5r0alPw759yWOY/y3KQ6TpufHmY30Op00joG+J 1CZDAVO32NQk5OdO2GhUf8uaqBUrgDN6hiGGrcuOuJSEpyficnNUjXuDKqL6I3di +YseB9Fh143Wp7q41Lwa13nsWKETeuFRiAX24gfK2lhtskoktVkLBWKiBHfTbK3x 4+OM4F/NQkmmhBv61Wb54J2yTReR5xaI6sA056hqjw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeeggdellecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepveehhedvveejledvvefgleevffdtjeekledvkeegheff gfeivdejhffhledtudetnecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgv lhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 72F4E2D40071; Sun, 29 May 2022 12:24:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 Mime-Version: 1.0 Message-ID: In-Reply-To: References: Date: Sun, 29 May 2022 11:23:40 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [RFC][Under discussion] Fetch properties in const expressions From: larry@garfieldtech.com ("Larry Garfield") 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. I'm in favor and the RFC looks good to me. --Larry Garfield