Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127002 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 CD62F1A00C7 for ; Tue, 1 Apr 2025 10:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1743503429; bh=k5pDGeNVfIQPaD1tuGQbWCUggyAhCJyoDdZpGXbLCI4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=eWaacb98gs7coCo0Cc0wfyqtoobj9f5rPILPIVrqdkEhlhx8y7iIZHH7m+4aQB9p+ t37iiBtvELUaYVYHKWpa2AzFPPLNvl+Wkc4SSd37LbC9rqECz9IT1YsDSvY3SN/MKw opdwJSr/hJ6B/TJ8roe9kJqBKPN9EwoefazpLVBG5fAAnB4IcsbUny57mMMbpZo8DR 7K6mfFnOMmTEHCxln7D/Z1AcMxuZ0EZUpmm66DN1OutEj4rv/Z0G8C5dmuarhtx0ms 5dm6P+/LOh4C2VfkKNQtytBmP6Yze3vUzbLwZq4vpjcVGLBpKU6ZC7jC9/xAo0gKHd BeC5likLb9JIA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 125F918056C for ; Tue, 1 Apr 2025 10:30:26 +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.8 required=5.0 tests=BAYES_50,DMARC_MISSING, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from alcott.smtp.mailx.hosts.net.nz (alcott.smtp.mailx.hosts.net.nz [43.245.52.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 1 Apr 2025 10:30:23 +0000 (UTC) Received: from 222-153-169-88-fibre.sparkbb.co.nz ([222.153.169.88] helo=[192.168.1.67]) by alcott.smtp.mailx.hosts.net.nz with esmtpsa authed as varteg.nz (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim 4.96) (envelope-from ) id 1tzYvH-00629z-2t for internals@lists.php.net; Tue, 01 Apr 2025 23:32:47 +1300 Message-ID: Date: Tue, 1 Apr 2025 23:32:40 +1300 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Closure::getCurrent() for recursion To: internals@lists.php.net References: <7ec4933d-0b9e-4c5a-bdb3-6a1a93c5ca62@varteg.nz> Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Hosts-DKIM-Check: none From: weedpacket@varteg.nz (Morgan) 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.]