Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21506 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33109 invoked by uid 1010); 13 Jan 2006 10:54:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33094 invoked from network); 13 Jan 2006 10:54:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2006 10:54:40 -0000 X-Host-Fingerprint: 213.136.52.68 mailgate-out2.mysql.com Linux 2.5 (sometimes 2.4) (4) Received: from ([213.136.52.68:47465] helo=mailgate.mysql.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CA/69-25674-EE687C34 for ; Fri, 13 Jan 2006 05:54:39 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.mysql.com (8.13.4/8.13.4) with ESMTP id k0DAsaPE014730 for ; Fri, 13 Jan 2006 11:54:36 +0100 Received: from mail.mysql.com ([10.222.1.99]) by localhost (mailgate.mysql.com [10.222.1.98]) (amavisd-new, port 10026) with LMTP id 12138-01 for ; Fri, 13 Jan 2006 11:54:35 +0100 (CET) Received: from [10.100.88.3] (10-100-88-3.mysql.internal [10.100.88.3]) by mail.mysql.com (8.13.3/8.13.3) with ESMTP id k0DAsXCn003181 for ; Fri, 13 Jan 2006 11:54:33 +0100 Message-ID: <43C786E5.1020400@mysql.com> Date: Fri, 13 Jan 2006 11:54:29 +0100 Organization: MySQL AB User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051219 SeaMonkey/1.0b MIME-Version: 1.0 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> In-Reply-To: <6C.F4.25674.EFD67C34@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mailgate.mysql.com Subject: Re: [PHP-DEV] Re: Named arguments revisited From: hartmut@mysql.com (Hartmut Holzgraefe) 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