Re: RFC: Support Closures in constant expressions

From: Date: Thu, 31 Oct 2024 14:16:23 +0000
Subject: Re: RFC: Support Closures in constant expressions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-125886@lists.php.net to get a copy of this message
On Tuesday, 29 October 2024 at 15:11, Tim Düsterhus <tim@bastelstu.be> wrote: > Hi > > Volker and I would like to start discussion on our RFC to "Support > Closures in constant expressions". > > Please find the following resources for your reference: > > - RFC: https://wiki.php.net/rfc/closures_in_const_expr > - Implementation: https://github.com/php/php-src/pull/16458 > > Best regards > Tim Düsterhus I very much like this feature, a bit sad that it doesn't support First Class Callable syntax, but I understand the increased complexity this would add.. Especially as supporting it would remove the last good reason to keep the callable type, which is to define a list of callables statically. Best regards, Gina P. Banyard

« previous php.internals (#125886) next »