Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21507 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43876 invoked by uid 1010); 13 Jan 2006 11:26:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43861 invoked from network); 13 Jan 2006 11:26:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2006 11:26:02 -0000 X-Host-Fingerprint: 195.225.34.5 fw01.axit.nl Received: from ([195.225.34.5:26581] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 21/7A-25674-84E87C34 for ; Fri, 13 Jan 2006 06:26:00 -0500 Message-ID: <21.7A.25674.84E87C34@pb1.pair.com> To: internals@lists.php.net 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> Date: Fri, 13 Jan 2006 12:25:12 +0100 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Posted-By: 195.225.34.5 Subject: Re: [PHP-DEV] Re: Named arguments revisited From: r.korving@xit.nl ("Ron Korving") That's a good point. But for PHP6, wouldn't everything have to be revised anyway? Another option is to make named parameter support optional per function. If a user calls a function with named parameters which the function doesn't support, the engine can trigger an error. This way internal functions and extensions can be upgraded with named parameter support as time goes on. - Ron "Hartmut Holzgraefe" schreef in bericht news:43C786E5.1020400@mysql.com... > Ron Korving wrote: >> Let me summarize it for you then. >> >> Advantages of named parameters over associative arrays: >> - cleaner syntax >> - support for type hints >> - difference between required and optional parameters >> - generating documentation (whether with something like phpDoc or an IDE) >> - ... >> >> Can anyone summarize the disadvantages now please? > > - all internal and PECL functions need to be recoded as the API > right now doesn't know any concept of parameter names at all > > > -- > Hartmut Holzgraefe, Senior Support Engineer . > MySQL AB, www.mysql.com