Re: named parameters?
| From: | Robert Cummings | Date: | Mon, 18 Apr 2005 16:49:30 +0000 |
| Subject: | Re: named parameters? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16010@lists.php.net to get a copy of this message | ||
On Mon, 2005-04-18 at 12:40, Hendy Irawan wrote:
> Does anybody want named parameters?
>
> These are handy as template functions (like in Smarty), and these are
> achievable since the oldest PHP by using associative arrays. It's
> purely syntactic sugar, but it's a very convenient thing I guess (and
> promotes long, long lists of parameters as well ;-)
I for one would love them since they are very nice and concise for
functions that take optional parameters and have a lot of them (such as
generic search functions). It would save on the creation of a temporary
array, and then having pass that to the function. But then, I also think
this has been to the list before, and we don't currently have named
parameters, so I'm guessing it got shot down already :)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'