Re: [DRAFT] [RFC] Function autoloading

From: Date: Fri, 30 Aug 2013 07:21:45 +0000
Subject: Re: [DRAFT] [RFC] Function autoloading
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
2013/8/30 Stas Malyshev <[email protected]>

> 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?
>

Well, static methods aren't the same as functions.


>
> > 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
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
github.com/KingCrunch


Thread (72 messages)

« previous php.internals (#68701) next »