Re: [RFC] Static class

From: Date: Thu, 27 Jun 2024 22:36:52 +0000
Subject: Re: [RFC] Static class
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Thu, Jun 27, 2024 at 1:18 PM Tim Düsterhus <[email protected]> wrote:

> It should not. See: readonly classes. I also believe that static classes
> should be implictly final. Given that no objects of such a class can
> exist, they cannot be exchanged by a different class anyways and
> inheritance is not meant for code reuse.
>
>
I don't agree that they should be implicitly final, or that inheritance is
not meant for code reuse. It is currently possible eg:
https://gist.github.com/oplanre/6894f56fb61134ee5ea93cf262ba3662
and I
don't see why that should change, unless you have any solid reasons as to
why.

Lanre


Thread (71 messages)

« previous php.internals (#123977) next »