Re: [RFC] Syntax for variadic functions

From: Date: Sat, 14 Sep 2013 11:04:03 +0000
Subject: Re: [RFC] Syntax for variadic functions
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Wed, Aug 28, 2013 at 5:47 PM, Nikita Popov <[email protected]> wrote:

> 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?
>

I'd like to go forward with voting on this. Are there any issues that still
need to be resolved?

Nikita


Thread (24 messages)

« previous php.internals (#69124) next »