Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20976 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24613 invoked by uid 1010); 1 Dec 2005 19:35:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24598 invoked from network); 1 Dec 2005 19:35:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2005 19:35:27 -0000 X-Host-Fingerprint: 209.59.182.2 amplex.webserversystems.com Linux 2.4/2.6 Received: from ([209.59.182.2:56672] helo=amplex.webserversystems.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 3D/D6-14828-F705F834 for ; Thu, 01 Dec 2005 14:35:27 -0500 Received: from adei.com ([64.142.64.79] helo=[192.168.2.10]) by amplex.webserversystems.com with esmtpa (Exim 4.52) id 1EhuDE-0001yi-Go; Thu, 01 Dec 2005 14:35:24 -0500 In-Reply-To: <818043770512011116sbc0ec67of28d801c371fa2c5@mail.gmail.com> References: <374c2968dd7f3d13c696037ef850256f@gravitonic.com> <2D.57.14828.3453E834@pb1.pair.com> <23.98.14828.81AAE834@pb1.pair.com> <438F0FC0.5070407@cschneid.com> <14A191A2-69CF-49C4-B500-A749D7C4B51B@intuitivefuture.com> <818043770512011116sbc0ec67of28d801c371fa2c5@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <226D684C-93CB-4A16-B584-4A61313AFDA3@intuitivefuture.com> Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Thu, 1 Dec 2005 11:35:16 -0800 To: Sebastian Kugler 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: Re: [PHP-DEV] Named arguments revisited From: jared@intuitivefuture.com (Jared White) On Dec 1, 2005, at 11:16 AM, Sebastian Kugler wrote: > On 12/1/05, Jared White wrote: >> I still say its main selling point is >> that the calling code is its own API documentation. > > why don't you just write something like > > cycle(/* name: */ "myCycle", /* values: */ "#eeeeee;#d0d0d0", /* > print: */ false, > /* reset: */ true, /* delimiter: */ ";"); > > It's just as self-explanatory and you don't have to change the > language for it :-) Hmm, that's not such a crazy idea. :) Wait, hey, that's not fair! Now you've spoiled everything! :) Seriously though, it still doesn't address the fact that the function/ method definition itself needs to have the named parameter notation to match, plus the idea of the catch-all parameters (from func_get_args() presumably) having string keys (I think that's what Christian mentioned which is a cool Python feature). Jared