Re: Re: [PATCH] Re: [PHP-DEV] namespace examples (solving name resolutionorderissues)
| From: | Andrew Mason | Date: | Mon, 15 Sep 2008 07:44:56 +0000 |
| Subject: | Re: Re: [PATCH] Re: [PHP-DEV] namespace examples (solving name resolutionorderissues) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40516@lists.php.net to get a copy of this message | ||
I for one would prefer the
<<
classes:
1) check current namespace
2) autoload if possible
3) fail
functions:
1) check current namespace
2) check internal
3) fail
>>
I think this a good approach. I don't know how biased I am as I use
the autoloader quite alot but it seems reasonable to me.
On Mon, Sep 15, 2008 at 12:51 PM, Stanislav Malyshev <stas@zend.com> wrote:
> Hi!
>
>> 1) check current namespace
>> 2) autoload if possible
>> 3) fail
>>
>> functions:
>>
>> 1) check current namespace
>> 2) check internal
>> 3) fail
>>
>> Load order would matter for functions, but the risk is worth the benefit.
>>
>> I believe the initial implementation of namespaces had this order for
>> classes, so Dmitry's first patch would have the necessary changes.
>
> That's exactly the mode that I described as second non-contradictory mode. I
> would like to know how many people here feel it is better than what we have
> now. I know many people right now may not be reading the list due to the
> Zend Conference so we'd have to wait some time to get a good feedback on
> that.
> --
> 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/unsub.php
>
>