Re: [RFC] Static class

From: Date: Tue, 25 Jun 2024 18:39:27 +0000
Subject: Re: [RFC] Static class
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-123839@lists.php.net to get a copy of this message
> On Jun 25, 2024, at 9:17 AM, Derick Rethans <derick@php.net> wrote: > > Having read this thread, and the previous one from half a year ago, I > will do so too. In short, we shouldn't be encouraging static classes as > a bag of static functions, that ought to be just namespaced functions. Which brings us back to the age-old problem that functions can’t be autoloaded. Me, I want first-class modules, but until we have those, I have to settle for classes in the meantime. Scala/Kotlin-like “companion objects” might be a good all-round substitute though. Cheers, chuck

« previous php.internals (#123839) next »