Re: Draft RFC: foreach iteration of keys without values
| From: | Stanislav Malyshev | Date: | Thu, 03 Sep 2020 07:18:45 +0000 |
| Subject: | Re: Draft RFC: foreach iteration of keys without values | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111801@lists.php.net to get a copy of this message | ||
Hi!
> If it adds a micro-optimization, great, but allowing a developer to
> explicitly signal intent is the primary argument for adding void.
> IMO.
You can signal intent by using $_ or $dummy or whatever. You don't need
new language construct each time for each way of using or not using a
variable.
--
Stas Malyshev
smalyshev@gmail.com