Re: Class static initialization block
| From: | Rowan Tommins | Date: | Sun, 12 Sep 2021 10:42:20 +0000 |
| Subject: | Re: Class static initialization block | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116033@lists.php.net to get a copy of this message | ||
On 12 September 2021 00:28:02 BST, David Rodrigues <david.proweb@gmail.com> wrote:
>Hello!
>
>I would like to suggest a feature I saw being implemented in the V8 9.4
>engine called "*class static initialization block*".
Hi David,
There was a similar proposal for PHP a few years ago: https://wiki.php.net/rfc/static_class_constructor
Although it didn't go to a vote, the proposal was dropped for lack of support. There's
some discussion summarised in that RFC, and you can probably find the rest by searching for its
title on https://externals.io
Regards,
--
Rowan Tommins
[IMSoP]