Re: Re: Named arguments revisited
| From: | Andrei Zmievski | Date: | Thu, 12 Jan 2006 00:19:45 +0000 |
| Subject: | Re: Re: Named arguments revisited | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21479@lists.php.net to get a copy of this message | ||
On Jan 9, 2006, at 4:09 AM, 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.If you get to the point where your function has a dozen parameters, I would suggest re-thinking the purpose and design of such a function, because you are likely trying to make it do too much. -Andrei