Re: Named Parameters
| From: | Hannes Magnusson | Date: | Sun, 04 Apr 2010 02:00:30 +0000 |
| Subject: | Re: Named Parameters | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47772@lists.php.net to get a copy of this message | ||
I don't think thad would require thad much work. we allready have arginfo
that does type hinting...
Modifieing that to support rewrtiting param order based on reflection Info
shouldn't be that hard...
The problem however is when an function accepts varargs (usually named
"...")..... if we however bring in strictct-ish naming convention I don't
see any immediate problems....
On Apr 3, 2010 1:02 AM, "Stanislav Malyshev" <stas@zend.com> wrote:
Hi!
> I really doubt named parameters would have much of an impact on >
anything, but I'd be willing t...
I think they'd allow to manage complex parameter sets more efficiently than
with those $options arrays. But that'd probably require changing the way how
parameters are passed, since the stack won't work too good anymore for it.
--
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,
visit: http://www.php.net...