Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18000 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26373 invoked by uid 1010); 13 Aug 2005 21:49:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26357 invoked from network); 13 Aug 2005 21:49:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2005 21:49:48 -0000 X-Host-Fingerprint: 85.92.69.73 iko.gotobg.net Linux 2.4/2.6 Received: from ([85.92.69.73:49459] helo=iko.gotobg.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 64/98-33075-BFA6EF24 for ; Sat, 13 Aug 2005 17:49:47 -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 1E43sx-00010A-U8; Sun, 14 Aug 2005 00:49:48 +0300 Message-ID: <42FE6AE7.1040405@hristov.com> Date: Sat, 13 Aug 2005 23:49:27 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050219 MIME-Version: 1.0 To: George Schlossnagle , internals@lists.php.net References: <42FCE0E4.604@lerdorf.com> <42FDDF11.2050308@cschneid.com> <6E8568FA-5893-476A-A88F-E5504C638F37@omniti.com> In-Reply-To: <6E8568FA-5893-476A-A88F-E5504C638F37@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 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 :) Andrey