Re: Discussion Short Constructor
| From: | Paul M. Jones | Date: | Thu, 24 Jul 2025 19:11:30 +0000 |
| Subject: | Re: Discussion Short Constructor | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-128219@lists.php.net to get a copy of this message | ||
Hi Dmitry,
> On Jul 24, 2025, at 12:41, Dmitry Derepko <xepozzd@gmail.com> wrote:
>
> Good catch for multi-classes per file with such feature, but I think it's not the time to
> do it.
...
> I think we should discuss the idea of the Short Constructor here. At least it does not require
> autoloading changes
Not as part of PHP internals anyway -- agreed.
> Btw, all possible changes of the autoloading may be proposed to Composer project without any
> RFC right now.
While we are here, I am working up a more-than-one class per file autoloader at https://github.com/motophp/autoload -- if it works
out, I expect I'd submit it for the Composer folks for their consideration.
-- pmj