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.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to