Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68916 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33396 invoked from network); 6 Sep 2013 17:44:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2013 17:44:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=happy.melon.wiki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=happy.melon.wiki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.176 as permitted sender) X-PHP-List-Original-Sender: happy.melon.wiki@gmail.com X-Host-Fingerprint: 209.85.214.176 mail-ob0-f176.google.com Received: from [209.85.214.176] ([209.85.214.176:42617] helo=mail-ob0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/55-05619-A941A225 for ; Fri, 06 Sep 2013 13:44:58 -0400 Received: by mail-ob0-f176.google.com with SMTP id uz19so3707220obc.7 for ; Fri, 06 Sep 2013 10:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:cc:content-type; bh=0pjstrQQzZ4RADfQkPR72BD53nUknRlsPgFiV5xbsww=; b=jzNARmyLfcYJJAoqTfVOLM8Ft0oatSnOKbjA0nF1rGiWX3iPkx80YxJf5cCuhV2WpE CL2K5pySSDtaqYAPIKK9JQ7GvJkbUmSJFdkHQ/bVvrUX4TICBTarEttCqXEUstwusgL7 Q5xkMA6VPV71wobbERVwha2DG2pBx4MFa/I63LHJfGkwmQ+E/SKPXIvuaxWUtCnabrMM 3atgDvahk9vI9hJNCB/gmJupO2gCb84dmXBNYUdwT1skKyqo4rRieAg7oqRJWsIhgcZi pgXi+9FCbS+AfYSeN8lJzOp/+ovPYTwl+SpXjuIU+bCsSlJzkdci7Fkj0L4qDVapz7wM nl8g== MIME-Version: 1.0 X-Received: by 10.182.48.194 with SMTP id o2mr2696303obn.90.1378489495365; Fri, 06 Sep 2013 10:44:55 -0700 (PDT) Sender: happy.melon.wiki@gmail.com Received: by 10.182.72.99 with HTTP; Fri, 6 Sep 2013 10:44:55 -0700 (PDT) In-Reply-To: References: Date: Fri, 6 Sep 2013 18:44:55 +0100 X-Google-Sender-Auth: qydqLO8E3WdpEzXuNWB7iUVRD-k Message-ID: Cc: PHP internals Content-Type: multipart/alternative; boundary=089e0160c898b2adf704e5ba9812 Subject: Re: [PHP-DEV] [RFC] Named parameters From: happy.melon.wiki+gb@gmail.com (George Bond) --089e0160c898b2adf704e5ba9812 Content-Type: text/plain; charset=ISO-8859-1 Regarding variable parameter names; if the syntax was: function foo( $firstParameter ) { ... } foo( $firstParameter=> 'foo' ); Then the double-dollar syntax would seem the obvious choice to me: function foo( $firstParameter ) { ... } $param = 'firstParameter'; foo( $$param => 'whatever' ); Which is no less readable than anywhere else the double-dollar is allowed... :-p --G --089e0160c898b2adf704e5ba9812--