Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21487 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23180 invoked by uid 1010); 12 Jan 2006 15:22:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23163 invoked from network); 12 Jan 2006 15:22:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2006 15:22:30 -0000 X-Host-Fingerprint: 70.85.46.36 unknown Received: from ([70.85.46.36:60332] helo=prohost.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A9/58-29075-53476C34 for ; Thu, 12 Jan 2006 10:22:30 -0500 Received: (qmail 15353 invoked from network); 12 Jan 2006 15:22:26 -0000 Received: from prohost.org (HELO ?127.0.0.1?) (70.85.46.36) by prohost.org with SMTP; 12 Jan 2006 15:22:26 -0000 Message-ID: <43C67431.9090003@prohost.org> Date: Thu, 12 Jan 2006 10:22:25 -0500 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Aidan Lister CC: internals@lists.php.net References: In-Reply-To: X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Named arguments revisited From: ilia@prohost.org (Ilia Alshanetsky) Aidan Lister wrote: > As useful functions tend to increase in complexity over time, often so > does the number of parameters. > > It soon gets to the point where function calls look like: > foo(true, false, false, false, false, true) > The rest of the parameters being required to be supplied, with their > default value, when the user is only interested in changing the last > option. > > Sure, you can fall back to associative array parsing. However, I feel it > lacks the rigor that named parameters can give. Named parameters also > give a clean method for the user to see the available options, rather > than reading through source code. What exactly do you find lack about associative arrays? Ilia