Re: [RFC] Skipping parameters take 2
| From: | Marcio Almada | Date: | Sun, 18 Jan 2015 02:22:06 +0000 |
| Subject: | Re: [RFC] Skipping parameters take 2 | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80719@lists.php.net to get a copy of this message | ||
Andrea,
> For consistency with list(), we could also just put nothing:
>
> foo($bar, , $baz);
>
> Which is like:
>
> list($bar, , $baz) = $arr;
>
> Thoughts?
Not sure. Do we consider both contexts (list assignment skipping and
parameter skipping) as assignments? If so, then the consistency
arguments seems very strong to me.
Only point against the consistency path is that in the context of
list() the blank identifier is used to discard a value, while on
parameter skipping the blank identifier inherits a previously declared
value.