> On Aug 30, 2024, at 10:15 AM, Larry Garfield <la...@garfieldtech.com> wrote:
> I would be very much in favor of revisiting Interface Default Methods, 
> though, as I think it would be a strong feature, and it's one found in nearly 
> all of our sibling languages at this point.  PHP is weird for not having 
> them.  I believe that would also be a better approach than traits that link 
> to interfaces, which achieves not-quite the same result with more steps.

I too am all for revisiting Interface Default Methods.  

Lack of interface default methods is one of the most painful missing features 
in PHP, IMO.

-Mike

P.S. Frankly, I would prefer PHP just merge the functionality of traits and 
interfaces so we can use `implements` or `use` and only have to reference one 
file instead of create two parallel files, but convincing others of this 
approach would likely be a herculean task, so Interface Default Methods would 
be a not-so-bad alternative.

Reply via email to