On Wed, Sep 2, 2020 at 9:31 AM Thomas Bley <ma...@thomasbley.de> wrote:

> Hello,
>
> I'd also like to propose to use null:
>
> [null, null, $username] = getUserData();
>
> foreach ($source as $key => null) {}
>
>
These both look like great, expressive syntaxes.  No new keywords, no major
change to existing idioms, just using up some otherwise unused space.

1. Are there other places this idiom might make sense?
2. Should we consider making them separate votes? Or taken as a whole?

-Sara

Reply via email to