Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125886 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 F38B91A00BD for ; Thu, 31 Oct 2024 14:16:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1730384343; bh=9bFvvJ1vHuq02WCLILY5QmF7pScPpesTgMVffdfHJtU=; h=Date:To:From:Cc:Subject:In-Reply-To:References:From; b=fF1Vr1Ue7hT8b4ObD9My1JO0DH459tCsDnJCwsHR6C3+YR6MNDItBNWHj6SokxZD2 5M1kEbt7bV7XMxUCK0zV9yZ1oV/aIkePeM75+TZ0zTXQFx+DplLAMYl++r54va5/Bt qkpiJfyeKWuxuwdjDwhRPqcPIa8rgwR1aIosigSQad+2vtXtarwQSPqDDA/C1noesH Yaj/FvvQtJQFvBx2K1l64/FoPUG5mTVQm29WP0hWh4pu1ZkPl7OMTO5LiShA1EOaN1 +ZlnXEYRDre7C/bEPVa1whw1FdvPzeiv6H03y/k8smXG/bU0s0zOQ8+eqsQVCbfII3 XcsJt/z11f0GA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E5FBD180209 for ; Thu, 31 Oct 2024 14:19:01 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 31 Oct 2024 14:18:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail2; t=1730384188; x=1730643388; bh=9bFvvJ1vHuq02WCLILY5QmF7pScPpesTgMVffdfHJtU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=qi2ClnWPbRStUfDFKI7KyU5CmR+NjRppjrkLx40j+Wt2ew7pmA+dRgR9t8T7V1O8w PNs1g1s8G41p56ELnRpQ8nMiPE69ofr5Cjn5cC+NQzx0EdFS9jgGqtzgzEaQE0ZT6M +6n9NhIcbrhYDxGkqz5Tyh4IHGAipaQMpdj2BQGr2FM5ntHS3HRat0RSTnpWxwKT5a ZdXqkwaduZ0IzjwIu37td6rzs+JaSR6d7EUt++5Bi1ufvqV4kTl5KqnJal8Nl6N4GS X/A/tEC7zXJ73bbyYOBRDp0CUidvt7krMaYPMGWKvETYpeCekkuZurKczv68di+UB2 apU5MbrPhQF+w== Date: Thu, 31 Oct 2024 14:16:23 +0000 To: =?utf-8?Q?Tim_D=C3=BCsterhus?= Cc: internals@lists.php.net, volker@tideways-gmbh.com Subject: Re: [PHP-DEV] RFC: Support Closures in constant expressions Message-ID: In-Reply-To: <15da4c13445d7e9c9d768c60c19768d4@bastelstu.be> References: <15da4c13445d7e9c9d768c60c19768d4@bastelstu.be> Feedback-ID: 96993444:user:proton X-Pm-Message-ID: 3ae5416924ab34a9281f318427a0b004b4d2e7b2 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") On Tuesday, 29 October 2024 at 15:11, Tim D=C3=BCsterhus = wrote: > Hi >=20 > Volker and I would like to start discussion on our RFC to "Support > 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 I very much like this feature, a bit sad that it doesn't support First Clas= s Callable syntax, but I understand the increased complexity this would add= . Especially as supporting it would remove the last good reason to keep the c= allable type, which is to define a list of callables statically. Best regards, Gina P. Banyard