Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21499 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36867 invoked by uid 1010); 13 Jan 2006 00:14:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36852 invoked from network); 13 Jan 2006 00:14:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2006 00:14:32 -0000 X-Host-Fingerprint: 66.216.66.81 mail.ionzoft.com Linux 2.4/2.6 Received: from ([66.216.66.81:54094] helo=mail.ionzoft.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 8D/61-29075-8E0F6C34 for ; Thu, 12 Jan 2006 19:14:32 -0500 Received: from JASONGARBER2 (207-255-4-232-static.aoo.pa.atlanticbb.net [207.255.4.232]) by mail.ionzoft.com (Postfix) with ESMTP id DEEB48A403D; Thu, 12 Jan 2006 19:15:19 -0500 (EST) Date: Thu, 12 Jan 2006 19:14:26 -0500 X-Mailer: The Bat! (v3.64.01 Christmas Edition) Professional Reply-To: Jason Garber Organization: IonZoft, Inc. X-Priority: 3 (Normal) Message-ID: <17710355086.20060112191426@ionzoft.com> To: Andi Gutmans CC: internals@lists.php.net In-Reply-To: <7.0.0.16.2.20060112154219.029d06c8@zend.com> References: <43C67431.9090003@prohost.org> <3A366ACB-20D4-42C7-BBAE-46F643E3A91F@intuitivefuture.com> <878581203.20060112153625@ionzoft.com> <7.0.0.16.2.20060112154219.029d06c8@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Named arguments revisited From: jason@ionzoft.com (Jason Garber) Hello Andi, I think the "sexy" syntax is a significant plus, even if associative arrays were used in the implementation. Is it a complex thing to implement? -- Best regards, Jason mailto:jason@ionzoft.com Thursday, January 12, 2006, 6:44:59 PM, you wrote: AG> In my opinion, as Ilia stated passing an associative array does the AG> job quite well for the use-case where named arguments would be useful. AG> Sure it might be a tad-bit sexier that you don't have to write AG> array() but the truth is that the implementation would probably still AG> use an array. Unlike Ada which has extremely strict typing, in PHP in AG> most cases we wouldn't be able to optimize away the named parameters, AG> meaning that we'd probably do the array() trick anyway. AG> Andi