Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18001 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31654 invoked by uid 1010); 13 Aug 2005 21:52:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31639 invoked from network); 13 Aug 2005 21:52:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2005 21:52:47 -0000 X-Host-Fingerprint: 66.80.117.3 longsword.omniti.com Linux 2.5 (sometimes 2.4) (4) Received: from ([66.80.117.3:39563] helo=mail.omniti.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 7C/89-33075-FAB6EF24 for ; Sat, 13 Aug 2005 17:52:47 -0400 Authentication-Results: mail.omniti.com smtp.user=george; auth=pass (LOGIN) DomainKey-Status: good X-DomainKeys: Ecelerity dk_sign implementing draft-delany-domainkeys-base-01 DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=test; d=omniti.com; h=Received:In-Reply-To:References:Mime-Version:Content-Type:Message-Id:Cc:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=DrXWOIm16LJKXAjfX/Ec23vhrvbBSA8Mog5SA8GGDLVz34PQNk0BRRUUBIm1pCYE lJIJnLtwoTTlRMiu2/MlxawDB1Kijt+Q6tVGu5kJ2te90hJ/Jsk97y73hL/0dlsk Received: from ([66.80.117.2:49177] helo=[192.168.219.134]) by mail.omniti.com (ecelerity 2.0 r(6416M)) with SMTP id E1/30-29456-7AB6EF24 for ; Sat, 13 Aug 2005 17:52:43 -0400 In-Reply-To: <42FE6AE7.1040405@hristov.com> References: <42FCE0E4.604@lerdorf.com> <42FDDF11.2050308@cschneid.com> <6E8568FA-5893-476A-A88F-E5504C638F37@omniti.com> <42FE6AE7.1040405@hristov.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <210C80B1-DFA3-40C9-A1A0-D8E5EE6AAAD9@omniti.com> Cc: George Schlossnagle , internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Sat, 13 Aug 2005 17:52:36 -0400 To: Andrey Hristov X-Mailer: Apple Mail (2.733) Subject: Re: [PHP-DEV] Re: PHP 6.0 Wishlist From: george@omniti.com (George Schlossnagle) 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