Re: Closure::getCurrent() for recursion

From: Date: Tue, 01 Apr 2025 10:32:40 +0000
Subject: Re: Closure::getCurrent() for recursion
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-127002@lists.php.net to get a copy of this message
On 2025-04-01 22:02, Hans Henrik Bergan wrote:
@Morgan $second=function(array $a, callable $first){...}
This is just as effective as it would be for any use()d variable, so why do we have use() again? [Note: in my original mail "$left" should of course have been "$first", otherwise there wouldn't be any mutual recursion. Sorry about the typo.]

« previous php.internals (#127002) next »