Re: [RFC] Argument unpacking

From: Date: Sun, 01 Sep 2013 01:06:45 +0000
Subject: Re: [RFC] Argument unpacking
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-68807@lists.php.net to get a copy of this message
hi Nikita! On Fri, Aug 30, 2013 at 5: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); > > Thoughts? The more I read these two RFCs (and the previous ones about similar features), the more I think we really need to find a compromise about named arguments. Many of the problems (remotely or closely related) would be solved too. About the syntax used in these RFCs, I really have to try out the patch and see if it feels natural, but can't say it while reading the RFCs... :) Cheers, -- Pierre @pierrejoye | http://www.libgd.org

« previous php.internals (#68807) next »