Re: Re: PHP 6.0 Wishlist

From: Date: Sat, 13 Aug 2005 20:41:39 +0000
Subject: Re: Re: PHP 6.0 Wishlist
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-17999@lists.php.net to get a copy of this message
On Aug 13, 2005, at 11:46 AM, Matthew Weier O'Phinney wrote:

* 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.
Huh? Perl doesn't have true support for this anyway, just a simpler syntax for hashrefs. If you want Perlish named params this is 100% identical to doing foo(array('id' => 42, 'name' => 'foo')); George

Thread (327 messages)

« previous php.internals (#17999) next »