Re: [RFC] Function autoloading through spl_autoload*
| From: | Ferenc Kovacs | Date: | Mon, 15 Aug 2011 09:15:20 +0000 |
| Subject: | Re: [RFC] Function autoloading through spl_autoload* | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54623@lists.php.net to get a copy of this message | ||
On Mon, Aug 15, 2011 at 10:26 AM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
> On 8/15/11 12:54 AM, Ferenc Kovacs wrote:
>>
>> I know that the bad decisions in the past won't count in this
>> argument, but the current "namespace resolution falls back to the
>> global namespace" is the one to blame for this shortcoming.
>
> It's not a shortcoming, it was designed that way, and for very serious
> reasons.
it depends on what do you mean by designed, it was brought up after
the namespace support was implemented, and the namespace separator
debate closed AFAIK.
> If you want to know the reasons, there were discussed extensively
> when namespaces were discussed. Please re-read that discussion. And all
> things you propose now were already discussed back then too. If you hope
> people would write \strlen instead of strlen, this discussion is pointless
> because it won't happen.
if somebody don't have the links, here they are:
http://www.mail-archive.com/internals@lists.php.net/msg39829.html
http://www.mail-archive.com/internals@lists.php.net/msg39577.html
https://wiki.php.net/rfc/namespaceresolution
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu