Re: [RFC] Argument unpacking

From: Date: Fri, 30 Aug 2013 16:43:25 +0000
Subject: Re: [RFC] Argument unpacking
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-68732@lists.php.net to get a copy of this message
On Fri, Aug 30, 2013 at 10:33 AM, Laruence <laruence@php.net> wrote: > On Fri, Aug 30, 2013 at 11:23 PM, Nikita Popov <nikita.ppv@gmail.com> > wrote: > > 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); > seems so weird and ugly.. > > -1 > > thanks Compared to the current alternatives it's definitely less ugly. I'm all for this syntax addition.

« previous php.internals (#68732) next »