Re: Allow to use argument unpacking at any place in arguments list
| From: | Stanislav Malyshev | Date: | Mon, 23 Feb 2015 01:40:30 +0000 |
| Subject: | Re: Allow to use argument unpacking at any place in arguments list | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83525@lists.php.net to get a copy of this message | ||
Hi!
> This makes it impossible to use this feature with some of the ext/std
> functions (array_udiff, array_interect_ukey, etc.) and just feels a bit
> incomplete...
I see how it can be useful with crazy functions like array_udiff, but
these are in tiny minority. What I am concerned about is that besides
those functions - which are weird anyway - code like foo($a, ...$b, $c)
would be completely unmanageable as it would be impossible to know where
$c is actually going. I think the case for weird array functions is
pretty narrow and can be handled in ad-hoc manner without introducing
this construct.
> I'm not sure if this change requires an RFC because this is a pretty
> small, advancement of already existing feature that doesn't contain any
It's a new syntax (yes, looking a lot like an old one, but still new),
so I think it requires an RFC.
--
Stas Malyshev
smalyshev@gmail.com