Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69124 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96878 invoked from network); 14 Sep 2013 11:04:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2013 11:04:08 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.182 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.182 mail-ob0-f182.google.com Received: from [209.85.214.182] ([209.85.214.182:51456] helo=mail-ob0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/E0-22237-6A244325 for ; Sat, 14 Sep 2013 07:04:08 -0400 Received: by mail-ob0-f182.google.com with SMTP id wo20so2032860obc.27 for ; Sat, 14 Sep 2013 04:04:04 -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 :content-type; bh=Jovv9nhlUm0tDBzTvYiZ20r+bA91XzFZCjO3eQi5jdU=; b=xA+kPf3Bd/w45I3BMTcVcetyJQNehRbZF3dwLagPWtIIEY30kmfBb59HwyZxAJukCb IXuFlO7txlL5aO+fECOa8orYlIDfMzWDVSa51934P4d3A/SUf5Oz9xaUbAUBQRgpyf0S tEHXrAdSgkdcy4M4kxJ1kIe3lvVgceBNpzabSVg4GM4SQTy0kI/gL0NxS2dhCv+N6WxM 6JHsYkco7TETai77aCByJL5pAn2MOvF9+sw91xAw/ewCtUxMbkQQNKvE1KK0ty87I2c2 TXkJXqrxIyCtKnpSRyecJw6R7fv2VR6sOrGKbPRtrpGfM7cn+Y/DyhpAgpE29AVVwT/n ROuA== MIME-Version: 1.0 X-Received: by 10.182.200.129 with SMTP id js1mr197410obc.55.1379156643991; Sat, 14 Sep 2013 04:04:03 -0700 (PDT) Received: by 10.182.98.8 with HTTP; Sat, 14 Sep 2013 04:04:03 -0700 (PDT) In-Reply-To: References: Date: Sat, 14 Sep 2013 13:04:03 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=001a11c23696dad8be04e655ed15 Subject: Re: [RFC] Syntax for variadic functions From: nikita.ppv@gmail.com (Nikita Popov) --001a11c23696dad8be04e655ed15 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Aug 28, 2013 at 5:47 PM, Nikita Popov 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 --001a11c23696dad8be04e655ed15--