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

From: Date: Wed, 12 Apr 2023 15:51:58 +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-119971@lists.php.net to get a copy of this message
On Tue, 11 Apr 2023 at 18:12, Hans Krentel via internals <internals@lists.php.net> wrote: > > So I'd love to see some commentary on a function_alias() > if now function autoloading is considered to come in I wouldn't be opposed to it, but it should be a separate RFC. The implementation could be copied from https://www.php.net/manual/en/function.runkit7-function-copy and probably wouldn't be that complicated, or conflict with this RFC. > It was the latter which brought us class_alias() [0] > and I've used it often in code migrations Yes, in particular the changing from Twig_Template_Loader to Twig\Template\Loader migration. I'll add it to my list at https://phpopendocs.com/rfc_codex It would seem a good "my first RFC" for someone. Though, function migration could also be solved in a far more powerful way. Check my forthcoming reply to Rowan... cheers Dan Ack

« previous php.internals (#119971) next »