Re: Autoloading functions/consts without a performance impact
| From: | Mike Schinkel | Date: | Fri, 03 Jan 2020 22:08:29 +0000 |
| Subject: | Re: Autoloading functions/consts without a performance impact | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107983@lists.php.net to get a copy of this message | ||
> On Jan 3, 2020, at 6:22 AM, Rasmus Schultz <rasmus@mindplay.dk> wrote:
>
> I will just briefly mention an alternative idea I've brought up before.
> (there's no RFC for this.)
>
> use function MyClass::myStaticFunction;
>
> myStaticFunction();
This strikes me as an excellent approach.
Well-spent five cents.
-Mike