Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68807 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26654 invoked from network); 1 Sep 2013 01:06:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2013 01:06:50 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.169 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.217.169 mail-lb0-f169.google.com Received: from [209.85.217.169] ([209.85.217.169:34740] helo=mail-lb0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/CC-55332-82392225 for ; Sat, 31 Aug 2013 21:06:49 -0400 Received: by mail-lb0-f169.google.com with SMTP id z5so2294225lbh.0 for ; Sat, 31 Aug 2013 18:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BAMibuymtR2xLjbfYDK0Nmupa+yRYfBH43GTOCLLciU=; b=nocSFIYE8A6+66DaAfNnoWpTgQY4d7uhqu7CxV+T/RHDk/A6rUzcYWFJeyNg27nuOS Rjg/oOPEmAA4zGihAuKmv0EB1bWJemng4opmkRHk50cFLNFosuULBt5wDdSyNyd5MCB4 ojISidFVbLeTF5mbmblQLqHW+PKsqGsnCiuzKmcStivM5evMg0YwWwen8Szckbnrm3oA UgSrdzJARUVltf6uKR5FVrHZ3jSIdImu/WK7lTbm6HbbEx3JFAYBMh6xtrG4xNgSosQ+ rHW8XczluFLsWyJP3r6/O7SRo1sszT4pQhasFG+g1UxfZnePuZjrEXYIZC1R+TFgKwqy WtUA== MIME-Version: 1.0 X-Received: by 10.152.3.42 with SMTP id 10mr14787547laz.22.1377997605266; Sat, 31 Aug 2013 18:06:45 -0700 (PDT) Received: by 10.112.148.138 with HTTP; Sat, 31 Aug 2013 18:06:45 -0700 (PDT) In-Reply-To: References: Date: Sun, 1 Sep 2013 03:06:45 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Argument unpacking From: pierre.php@gmail.com (Pierre Joye) hi Nikita! On Fri, Aug 30, 2013 at 5: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? 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