Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71103 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27390 invoked from network); 12 Jan 2014 21:10:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2014 21:10:35 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.240 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.240 imap2-1.ox.registrar-servers.com Received: from [198.187.29.240] ([198.187.29.240:38657] helo=imap2-1.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/C2-13233-9C403D25 for ; Sun, 12 Jan 2014 16:10:34 -0500 Received: from [192.168.0.200] (unknown [176.25.177.94]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id ABF205A0051; Sun, 12 Jan 2014 16:10:30 -0500 (EST) Message-ID: <52D304C5.1040201@ajf.me> Date: Sun, 12 Jan 2014 21:10:29 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Rowan Collins , internals@lists.php.net References: <581A185E-0F00-4B49-AA87-859D75E63BA2@googlemail.com> <52D2ED5F.4000706@gmail.com> <52D2EE69.9070806@ajf.me> <52D301F3.9010600@gmail.com> In-Reply-To: <52D301F3.9010600@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Revisiting the "Named Arguments" RFC From: ajf@ajf.me (Andrea Faulds) On 12/01/14 20:58, Rowan Collins wrote: > The question, is, is the parser robust enough to guarantee that the > following will all be parsed correctly: > > do_soap_call(namespace: 'foo'); > check(if: $arriving === true, true: 'Hello', false: 'Goodbye'); > $callback = array( function: function() { }, array: array( ) ); None of those would work, they're reserved words. You'd do bar("namespace" => "foo") not bar(namespace: "foo"); -- Andrea Faulds http://ajf.me/