[RFC] Argument unpacking
| From: | Nikita Popov | Date: | Fri, 30 Aug 2013 15:23:08 +0000 |
| Subject: | [RFC] Argument unpacking | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-68726@lists.php.net to get a copy of this message | ||
Hi internals!
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.
The syntax it introduces looks as follows:
$db->query($query, ...$params);
Thoughts?
Thanks,
Nikita