Re: [RFC] Argument unpacking
| From: | Stas Malyshev | Date: | Fri, 30 Aug 2013 16:57:02 +0000 |
| Subject: | Re: [RFC] Argument unpacking | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68734@lists.php.net to get a copy of this message | ||
Hi!
> This RFC proposes to add a syntax for argument unpacking:
>
> https://wiki.php.net/rfc/argument_unpacking
>
> Basically, this is the "complement" of the variadics RFC: It is not about
> declaring variadic functions, but about calling them.
This is just another way of doing call_user_func, I'm not sure we really
need it. And something like:
test(1, 2, ...[3, 4], 5, 6, ...[7, 8])
looks plain weird. What would be the use case for doing something like
that? I don't think we should add this.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227