Re: Re: Named arguments revisited
| From: | Ron Korving | Date: | Fri, 13 Jan 2006 09:07:43 +0000 |
| Subject: | Re: Re: Named arguments revisited | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21504@lists.php.net to get a copy of this message | ||
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?
- Ron
"Derick Rethans" <derick@php.net> schreef in bericht
news:Pine.LNX.4.62.0601130914440.19056@localhost...
> On Fri, 13 Jan 2006, Lukas Smith wrote:
>
>> Now obviously there would have to be someone to implement it, but I see
>> no
>> "design" reason to not allow this feature in.
>
> But I see no reason to add it either...
>
> regards,
> Derick