Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125880 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id B52EC1A00BD for ; Wed, 30 Oct 2024 12:06:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1730290145; bh=KX1I7sSvdPaES+Jf+iKzeNC5pkGoXlOrFZA8yfEqQjw=; h=Date:From:To:In-Reply-To:References:Subject:From; b=KuaIAre0coBjnxJoLliDiy89MvEzNyl3HgcrcuF7cpy5Zg06/rgGE1Y9JV8/SuNKy zr+AkAh3XTk6IfTCkfh8tiT8qPE85iUrThEOOCcyDpAc0Mrf+nWpogI7NurBbDyga9 eOk2j8UBnlxH66CRcJ3mnGOZybBv0O8330PvGFgKpGrlFNsJfltVV8CWDyGIWth5R6 N0gutvcwlSYiw6wnWpVLytE3ZzN7pHCR0kfmown54VV2yYft05M406JVR581q6wKDy 9MOlRHpziD/vyDgMydOJOgVlvdNDVisO6h4Mm72MOkf+KnWyTpTY6RJqoLPbj4hb1P v7C7MlljvgRIQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 91510180042 for ; Wed, 30 Oct 2024 12:09:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-a4-smtp.messagingengine.com (fhigh-a4-smtp.messagingengine.com [103.168.172.155]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 30 Oct 2024 12:09:04 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2C66411401C4; Wed, 30 Oct 2024 08:06:35 -0400 (EDT) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-01.internal (MEProxy); Wed, 30 Oct 2024 08:06:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1730289995; x=1730376395; bh=KX1I7sSvdP aES+Jf+iKzeNC5pkGoXlOrFZA8yfEqQjw=; b=26Gsug/ueuviaBNEDbeJ3SmspZ w5X1USgcXpopuKW/iX/aj8jw0BTiBt7ysJgoFv8zw+ZEkIBkH7jRpEOt4Tgdi32p +Jcp//f8KPJ21UcaQgX7Sl3hOu5CFfUE75rguebTIwGJfZhrFwrDzwVINi6XO3hT qd1SyNmRDIKzDjl7SBvqqkqqSWLHIKbOtbLJ5DnllEvnUKrlBkvulUs3rXV8fzZA 9Z9vbQDxvgdxFGg9YiGJs5cXxLwdhoT0DQ0EhGhMsWjAc6Z/sA4AuQcJd+7JM2du iAXOfdAZa/SxcKpJ1SBIo/zZvK5qZk17GVSiPE0NcpPjWvnWICobsq8X9XgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1730289995; x=1730376395; bh=KX1I7sSvdPaES+Jf+iKzeNC5pkGoXlOrFZA 8yfEqQjw=; b=oWsjf1FA7jhpD58YYKSwN2h7m0Ww3oOxBNYLw4juBbdBpuycrLQ GcL86byUUiRwCSwrz0vIe+ddgpoYuwcw5HlpDObuj6EF38B5tlLMUG9c53nITPlC l2oVEOc20FjGplT6kS73zlT3TU0zHHnmnmIENwQu2clOeSYTiS1Tyu1plPRyr0Xg Ryh355cEANIgwkWK4h/sV9ePdIt9lInDkk/aGVgwcPNfAbvplDbpQBdLbEnP351t UXPkOCdnScxPll/5lavG1AH2jYz0ehQCgjvL7yRr9n2xgcKOrVlCBwOCbdZUx1WN s4d2/hK260RN/yfG6+gqtOtlw3GPe94L64w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdekfedgfeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefoggffhf fvkfgjfhfutgesrgdtreerredtjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcu oehrohgssegsohhtthhlvggurdgtohguvghsqeenucggtffrrghtthgvrhhnpeehieffke etleejueefjeffueffheevudfgteevfeeijeevfffhhfegueetteffleenucffohhmrghi nhepphhhphdrnhgvthdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheprhhosgessghothhtlhgvugdrtghouggvshdp nhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepthhimh essggrshhtvghlshhtuhdrsggvpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishht shdrphhhphdrnhgvthdprhgtphhtthhopehvohhlkhgvrhesthhiuggvfigrhihsqdhgmh gshhdrtghomh X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 9C793780069; Wed, 30 Oct 2024 08:06:34 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 30 Oct 2024 13:06:14 +0100 To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= , internals@lists.php.net, volker@tideways-gmbh.com Message-ID: <9681c714-4916-45cd-98ce-561ca8e89351@app.fastmail.com> In-Reply-To: <15da4c13445d7e9c9d768c60c19768d4@bastelstu.be> References: <15da4c13445d7e9c9d768c60c19768d4@bastelstu.be> Subject: Re: [PHP-DEV] RFC: Support Closures in constant expressions Content-Type: multipart/alternative; boundary=6ab0c1a3546b4ed1a94bc5a9f99bf634 From: rob@bottled.codes ("Rob Landers") --6ab0c1a3546b4ed1a94bc5a9f99bf634 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Oct 29, 2024, at 16:11, Tim D=C3=BCsterhus wrote: > Hi >=20 > Volker and I would like to start discussion on our RFC to "Support=20 > Closures in constant expressions". >=20 > Please find the following resources for your reference: >=20 > - RFC: https://wiki.php.net/rfc/closures_in_const_expr > - Implementation: https://github.com/php/php-src/pull/16458 >=20 > Best regards > Tim D=C3=BCsterhus >=20 Hi Tim, This looks interesting, but I notice it says that the closure can access= =E2=80=9Cprivate properties=E2=80=9D: > This means that Closures in property default values may access private= properties, methods, and class constants of the class where they are de= fined I assume this means private *static* properties since it couldn=E2=80=99= t be attached/bound to a specific instance? (Must be static?) =E2=80=94 Rob --6ab0c1a3546b4ed1a94bc5a9f99bf634 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

=
On Tue, Oct 29, 2024, at 16:11, Tim D=C3=BCsterhus wrote:=
Hi

Volker and I would like to start discussion on our= RFC to "Support 
Closures in constant expressions".<= br>

Please find the following resources for you= r reference:


Best regards
T= im D=C3=BCsterhus


Hi Tim,

This looks interesting, but I no= tice it says that the closure can access =E2=80=9Cprivate properties=E2=80= =9D:

This means t= hat Closures in property default values may access private properties, m= ethods, and class constants of the class where they are defined

I assume this means private *static* p= roperties since it couldn=E2=80=99t be attached/bound to a specific inst= ance? (Must be static?)
=E2=80=94 Rob<= br>
--6ab0c1a3546b4ed1a94bc5a9f99bf634--