Re: Revisiting the "Named Arguments" RFC
From: Andrea Faulds Date: Sun, 12 Jan 2014 21:10:29 +0000 Subject: Re: Revisiting the "Named Arguments" RFC References: 1 2 3 4 5 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
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/
Thread (29 messages)
« previous | php.internals (#71103) | next » |
---|