Re: Static class
| From: | Rowan Tommins [IMSoP] | Date: | Sat, 15 Jun 2024 13:53:08 +0000 |
| Subject: | Re: Static class | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-123613@lists.php.net to get a copy of this message | ||
On 15/06/2024 12:16, Bilge wrote:
I want to introduce theThis has been proposed before, and was rejected at vote. It was nearly 10 years ago, so opinions may have changed, but it would be worth reading through the prior discussion to anticipate or counter the objections raised, and avoid re-treading the same ground. - RFC: https://wiki.php.net/rfc/abstract_final_class - Pre-vote discussion threads: https://externals.io/message/79211 and https://externals.io/message/79338 - Final vote thread: https://externals.io/message/79601 Searching my list archive, I find that it came up again a few months ago, which I'd entirely forgotten: https://externals.io/message/121717 Slightly tangential, but some of the same discussion also came up on these rather lengthy threads about "static class constructors": https://externals.io/message/84602 and https://externals.io/message/85779 Regards, -- Rowan Tommins [IMSoP]statickeyword at the class declaration level. That is, the following would be valid:static class Foo {}.