Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68758 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97523 invoked from network); 30 Aug 2013 20:02:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2013 20:02:53 -0000 Authentication-Results: pb1.pair.com header.from=php@hristov.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@hristov.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hristov.com from 91.196.124.214 cause and error) X-PHP-List-Original-Sender: php@hristov.com X-Host-Fingerprint: 91.196.124.214 more.superhosting.bg Linux 2.6 Received: from [91.196.124.214] ([91.196.124.214:53042] helo=more.superhosting.bg) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/BD-32511-A6AF0225 for ; Fri, 30 Aug 2013 16:02:52 -0400 Received: from [87.121.162.127] (port=48675 helo=[192.168.20.117]) by more.superhosting.bg with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1VFUu7-002LzH-0B; Fri, 30 Aug 2013 23:02:47 +0300 Message-ID: <5220FA61.9010100@hristov.com> Date: Fri, 30 Aug 2013 22:02:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Nikita Popov CC: PHP internals References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - more.superhosting.bg X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Get-Message-Sender-Via: more.superhosting.bg: authenticated_id: php@hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] [RFC] Argument unpacking From: php@hristov.com (Andrey Hristov) On 08/30/2013 05:23 PM, Nikita Popov 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? > > Thanks, > Nikita > can't we use a new cast operator like (unpack) for this instead of the three dots? $db->query($query, (unpack) $params); ? Andrey