Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18002 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33449 invoked by uid 1010); 13 Aug 2005 21:57:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33434 invoked from network); 13 Aug 2005 21:57:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2005 21:57:44 -0000 X-Host-Fingerprint: 85.92.69.73 iko.gotobg.net Linux 2.4/2.6 Received: from ([85.92.69.73:46864] helo=iko.gotobg.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 9A/C9-33075-7DC6EF24 for ; Sat, 13 Aug 2005 17:57:43 -0400 Received: from p54a0f145.dip.t-dialin.net ([84.160.241.69] helo=[192.168.0.41]) by iko.gotobg.net with esmtpa (Exim 4.50) id 1E440f-00071s-0g; Sun, 14 Aug 2005 00:57:45 +0300 Message-ID: <42FE6CC4.8080705@hristov.com> Date: Sat, 13 Aug 2005 23:57:24 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050219 MIME-Version: 1.0 To: George Schlossnagle CC: internals@lists.php.net References: <42FCE0E4.604@lerdorf.com> <42FDDF11.2050308@cschneid.com> <6E8568FA-5893-476A-A88F-E5504C638F37@omniti.com> <42FE6AE7.1040405@hristov.com> <210C80B1-DFA3-40C9-A1A0-D8E5EE6AAAD9@omniti.com> In-Reply-To: <210C80B1-DFA3-40C9-A1A0-D8E5EE6AAAD9@omniti.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Re: PHP 6.0 Wishlist From: php@hristov.com (Andrey Hristov) 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 : >>>> >>>> >>>>> 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