Re: Fake Closure Comparison

From: Date: Mon, 12 Jul 2021 09:45:57 +0000
Subject: Re: Fake Closure Comparison
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-115399@lists.php.net to get a copy of this message
Le lun. 12 juil. 2021 à 11:42, Patrick ALLAERT <patrickallaert@php.net> a écrit : > Le lun. 12 juil. 2021 à 09:51, Nikita Popov <nikita.ppv@gmail.com> a > écrit : > >> I'm also not sure where this would be actually useful (though I'm okay >> with including it, as the functionality itself seems sensible). As Patrick >> Allaert suggested this, maybe he can comment on some use cases. >> > > I can't really see a useful case either, it was more rhetorical. > Maybe: if ($f == unlink(...)) { logging("Deleting $x"); } $f($x);

« previous php.internals (#115399) next »