George Schlossnagle wrote:
On Aug 13, 2005, at 5:49 PM, Andrey Hristov wrote:
George Schlossnagle wrote:
On Aug 13, 2005, at 11:46 AM, Matthew Weier O'Phinney wrote:
* Christian Schneider <[EMAIL PROTECTED]> :
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
Well, this idea I think comes from Python. Last time I checked they
had these
and as far as I remember this have been brought 2 times. The first
time before
5.0 and has been rescheduled for 6.0 :)
:)
I'm not against named parameters. Python's support for them is nice as
well. But Perl doesn't support named parameters any different than can
be done currently in PHP.
George
I could be wrong, but I think you were the one who first wanted named parameters
that long time ago :)
Andrey
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php