Re: Re: Function autoloading

From: Date: Mon, 02 Sep 2013 20:11:51 +0000
Subject: Re: Re: Function autoloading
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 [email protected] to get a copy of this message
Hi!

> The function names might look like this:
> - spl_register_autoloader -> autoloader for everything

Given we already have spl_autoload_register that'd be pretty confusing.
Also, we usually name functions in increasing order of specificity (i.e.
spl_autoload_call/spl_autoload_spl_autoload_functions, not
spl_call_autoloader and spl_give_me_list_of_autoload_functions).

> - spl_register_function_autoloader -> autoloader for functions/consts
> - spl_register_class_autoloader -> current autoloader for classes only

> Or maybe alias php\ to \ namespace auto-magically?

Nope. \ namespace is root namespace, it can not be magically aliased to
anything and should not be.

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227


Thread (72 messages)

« previous php.internals (#68860) next »