Re: PHP 6.0 Wishlist
| From: | Ron Korving | Date: | Sat, 13 Aug 2005 16:44:04 +0000 |
| Subject: | Re: PHP 6.0 Wishlist | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17979@lists.php.net to get a copy of this message | ||
Perhaps the named parameters could even be constant-like?
How would this syntax be?
foo(id => 42, name => "foo");
Ron
"Matthew Weier O'Phinney" <mweierophinney@gmail.com> wrote in message
news:slrndfs5ef.rck.mweierophinney@ubergeek.garden.org...
> * Christian Schneider <cschneid@cschneid.com> :
> > 9. Named parameters. Preferred way would be via array()-less array
> > collation as we are already using this in our production system ;-) :
> > foo('id' => 42, 'name' => "foo");
>
> +1 -- this is one of the biggest things I miss coming from perl to PHP.
>
> --
> Matthew Weier O'Phinney
> Zend Certified Engineer
> http://weierophinney.net/matthew/