Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40899 invoked by uid 1010); 30 Nov 2005 07:17:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40884 invoked from network); 30 Nov 2005 07:17:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2005 07:17:09 -0000 X-Host-Fingerprint: 209.59.182.2 amplex.webserversystems.com Linux 2.4/2.6 Received: from ([209.59.182.2:60005] helo=amplex.webserversystems.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 41/7F-14828-5F15D834 for ; Wed, 30 Nov 2005 02:17:09 -0500 Received: from adei.com ([64.142.64.79] helo=[192.168.2.10]) by amplex.webserversystems.com with esmtpa (Exim 4.52) id 1EhMDD-0007am-7E for internals@lists.php.net; Wed, 30 Nov 2005 02:17:07 -0500 Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: 7bit Message-ID: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: internals@lists.php.net Date: Tue, 29 Nov 2005 23:17:05 -0800 X-Mailer: Apple Mail (2.746.2) X-Antivirus-Scanner: This message has been scanned by ClamAV - CLEAN. 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 - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - intuitivefuture.com X-Source: X-Source-Args: X-Source-Dir: Subject: Named arguments revisited From: jared@intuitivefuture.com (Jared White) Hi folks, I just got on the list -- I've been a big fan of PHP for several years and am throughly enjoying PHP 5. Good work folks, and once I can get 5.1 set up on my OS X box I'm sure it's be even better. I've been very interested in hearing about PHP 6 feature discussions, and the meeting notes that Derrick posted looked really good. But there was one item that stood out for me as being extremely disappointing, and that was the curt dismissal of named arguments (or parameters I guess you are calling them). Named arguments are absolutely essential for using PHP as a solid templating language, and, in fact, they also greatly enhance code readability for complex method calls of in-depth APIs. My experience with both Objective-C and Python has showed me the wonders and joys of named arguments, and it is something I've desperately wanted in PHP for ages. I'm sure I'm not alone in this. I've tried array constructs, multiple arguments with string-based names and fancy parsing using func_get_args(), and various combinations thereof, and nothing is a good substitute for the real deal. If I had the technical knowhow to jump in and help implement this, I would, but I'm a lousy C programmer. :( But I definitely want to lend my support to anyone interested in working on this. Please, please don't give up on this feature! Thanks so much, Jared