Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21498 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30916 invoked by uid 1010); 12 Jan 2006 23:45:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30891 invoked from network); 12 Jan 2006 23:45:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2006 23:45:08 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:51878] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 47/21-29075-10AE6C34 for ; Thu, 12 Jan 2006 18:45:06 -0500 Received: (qmail 12677 invoked from network); 12 Jan 2006 23:45:01 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 12 Jan 2006 23:45:01 -0000 Message-ID: <7.0.0.16.2.20060112154219.029d06c8@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.0.16 Date: Thu, 12 Jan 2006 15:44:59 -0800 To: internals@lists.php.net In-Reply-To: <878581203.20060112153625@ionzoft.com> References: <43C67431.9090003@prohost.org> <3A366ACB-20D4-42C7-BBAE-46F643E3A91F@intuitivefuture.com> <878581203.20060112153625@ionzoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Re: Named arguments revisited From: andi@zend.com (Andi Gutmans) In my opinion, as Ilia stated passing an associative array does the job quite well for the use-case where named arguments would be useful. Sure it might be a tad-bit sexier that you don't have to write array() but the truth is that the implementation would probably still use an array. Unlike Ada which has extremely strict typing, in PHP in most cases we wouldn't be able to optimize away the named parameters, meaning that we'd probably do the array() trick anyway. Andi