Re: [DRAFT] [RFC] Function autoloading

From: Date: Fri, 30 Aug 2013 07:02:18 +0000
Subject: Re: [DRAFT] [RFC] Function autoloading
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi!

> I disagree on the basis that namespaced functions/constants *do* fit the
> same autoloading paradigm.

If they're already namespaced, what prevents one to put it in a class
and use good old PSR-compatible loading?

> Those function calls would only kick in if the function/constant wasn't
> already defined, which will be the exception case, so perf isn't a
> strong argument.

Not according to the code I see in the patch. There I see 2 func calls
(among other things) before the hash is even looked up.

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


Thread (72 messages)

« previous php.internals (#68699) next »