Re: [RFC] New core autoloading mechanism with support for function autoloading

From: Date: Tue, 11 Apr 2023 12:30:26 +0000
Subject: Re: [RFC] New core autoloading mechanism with support for function autoloading
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-119912@lists.php.net to get a copy of this message
> > We have the special constants like \MyNamespace\MyClass::class. Would > you envisage (or is there value in) equivalent constants like > \MyNamespace\MyFunction::function? > If anything, I would suggest renaming the existing constant to something more meaningful. There is no point in adding ::function because that would just be an additional confusing alias for the same thing. Doing strpos::class works just fine, but is semantically incorrect.

« previous php.internals (#119912) next »