Re: [Discussion] Callable types via Interfaces

From: Date: Thu, 20 Apr 2023 19:48:29 +0000
Subject: Re: [Discussion] Callable types via Interfaces
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-120086@lists.php.net to get a copy of this message
On Thu, Apr 20, 2023, at 7:10 PM, Deleu wrote: > On Thu, Apr 20, 2023 at 2:25 PM Larry Garfield <larry@garfieldtech.com> > wrote: > >> But that runs quickly into the problem of verbosity, reusability, and type >> aliases, and the discussion usually dies there. >> > > Just out of curiosity, was there ever a discussion thread dedicated for > Type aliases? I couldn't find it on externals.io and I was curious to know > what are the challenges there since a lot of time and effort seem to have > been put on trying to sidestep it. Not that I recall, on list. There has been discussion on and off in various chat rooms over the last 3-ish years. The general pattern seems to be "that would be cool and useful! But how do we define them, and how does autoloading work for something that's a one liner?" And since no one has a good answer for that, it kinda dies there. I wouldn't expect a formal discussion thread on it until someone has a solid proposal that addresses those questions that they want to run up the flag pole. (Not that I think that's a good process, but that's how things work right now, mostly.) --Larry Garfield

« previous php.internals (#120086) next »