[RFC] Syntax for variadic functions
| From: | Nikita Popov | Date: | Wed, 28 Aug 2013 15:47:26 +0000 |
| Subject: | [RFC] Syntax for variadic functions | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-68639@lists.php.net to get a copy of this message | ||
Hi internals!
I'd like to propose an RFC, which adds dedicated syntax for variadic
functions:
https://wiki.php.net/rfc/variadics
Basically this allows declaring variadics directly in the function
signature, rather than fetching the arguments using func_get_args().
Example:
public function query($query, ...$params) { /* ... */ }
What are your thoughts on this?
Thanks,
Nikita