Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21524 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98214 invoked by uid 1010); 13 Jan 2006 22:45:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98198 invoked from network); 13 Jan 2006 22:45:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2006 22:45:21 -0000 X-Host-Fingerprint: 209.59.182.2 amplex.webserversystems.com Linux 2.4/2.6 Received: from ([209.59.182.2:42678] helo=amplex.webserversystems.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 6C/85-61655-E7D28C34 for ; Fri, 13 Jan 2006 17:45:19 -0500 Received: from intuitiv by amplex.webserversystems.com with local (Exim 4.52) id 1ExXfQ-0007bX-Gv; Fri, 13 Jan 2006 17:45:08 -0500 Received: from 127.0.0.1 ([127.0.0.1]) (SquirrelMail authenticated user jared@intuitivefuture.com) by www.intuitivefuture.com with HTTP; Fri, 13 Jan 2006 17:45:08 -0500 (EST) Message-ID: <42645.127.0.0.1.1137192308.squirrel@www.intuitivefuture.com> In-Reply-To: <7.0.0.16.2.20060113083421.07b59728@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> <43C75FEE.7040908@php.net> <6C.F4.25674.EFD67C34@pb1.pair.com> <43C786E5.1020400@mysql.com> <43C7975A.2070504@php.net> <7.0.0.16.2.20060113083421.07b59728@zend.com> Date: Fri, 13 Jan 2006 17:45:08 -0500 (EST) To: "Andi Gutmans" Cc: "Jared White" , "Lukas Smith" , internals@lists.php.net User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - amplex.webserversystems.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [32191 32003] / [47 12] X-AntiAbuse: Sender Address Domain - intuitivefuture.com X-Source: /usr/local/cpanel/3rdparty/bin/php X-Source-Args: /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/base/3rdparty/squirrelmail/src/compose.php X-Source-Dir: :/base/3rdparty/squirrelmail/src Subject: Re: [PHP-DEV] Re: Named arguments revisited From: jared@intuitivefuture.com This isn't a waste of bandwidth. This is about the future of the language and about the fact that PHP is missing a crucial feature that several other languages have had for years and others are working on -- PHP's competition, in other words. Please explain to me how using an array is a solution. As I see it, it's not. It's a hack. It gives you nothing...no code-completion, no error checking, no built-in documentation -- not even type hinting which was a nice add-on for PHP 5. I don't mean to sound antagonistic, but there's only one justification I can see for not implementing named parameters and that's time. Actually defending a design decision of rejecting it quite frankly astonishes me. Jared > Guys, > > It's not going to happen. Please move on. We've discussed it lots of > times in the past. Many times we've come to the conclusion that for a > few cases it's not worth it. > If you have functions with lots of parameters (probably 3-4 in a > whole application) then just use array()'s. It's actually not a > mediocre but a pretty decent solution. > > Don't mean to be abrupt but we waste so much bandwidth here on things > we've already discussed in the past, and most of the main dev's > clearly aren't in favor. > > Andi