Re: [RFC] Named parameters
| From: | Gareth Evans | Date: | Fri, 06 Sep 2013 16:59:41 +0000 |
| Subject: | Re: [RFC] Named parameters | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68910@lists.php.net to get a copy of this message | ||
I like!
My preference on syntax is;
test(:foo => "oof", :bar => "rab");
I don't think;
test("foo" => "oof", "bar" => "rab");
denotes enough emphasis on any part in-particular, and the downsides
of other implementations are mentioned, such as variable names and
collisions with reserved keywords.
Thanks,
Gareth
On 6 September 2013 17:39, Nikita Popov <nikita.ppv@gmail.com> wrote:
> Hi internals!
>
> I created an RFC and preliminary implementation for named parameters:
>
> https://wiki.php.net/rfc/named_params
>
> The RFC and implementation are not yet complete. I mainly want to have
> feedback on the idea in general and on the Open Questions (
> https://wiki.php.net/rfc/named_params#open_questions) in
> particular.
>
> Thanks,
> Nikita