Re: [RFC] Static class

From: Date: Fri, 12 Jul 2024 00:14:20 +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 25/06/2024 16:17, Derick Rethans wrote:
we shouldn't be encouraging static classes as a bag of static functions, that ought to be just namespaced functions. cheers, Derick
Can someone clue me in as to why grouping related functions in a file with nothing but a namespace is strictly better than those same related functions grouped as members of a class? It doesn't have to be Larry or Derick, because even though they have expressed this view, I am aware they are not the only ones whom hold it. Anyone who can shed some light on this perspective is welcome to comment. Cheers, Bilge

Thread (71 messages)

« previous php.internals (#124400) next »