timvandijck's avatar

Tim

timvandijck

Member since

35

Total Reputation

2

Total Arguments

3

Total Votes for Arguments

Arguments and votes

1

While I see there's a case for it and that it could be useful in certain cases, I don't think this will improve our code when looking at the bigger picture. Not being able to add a default implementation in your interface is a feature and not a shortcoming in my opinion.

I'm perfectly fine with combining interfaces and traits to accomplish the same thing.

Share:
Read the RFC: Interface Default Methods timvandijck avatar
timvandijck
voted no
1

I'm a fan of the method chaining pattern. This would be a nice way to have similar behaviour without having to create a class.

Share:
Read the RFC: The Pipe Operator timvandijck avatar
timvandijck
voted yes
75
  • Interface shall stay light, pure contracts defining expectations, else they are just abstract classes with multi-inheritance.
  • If multi-inheritance is the subject, a specific RFC shall be done on this.
  • An other away might be to dig back this RFC to add interface to traits: https://wiki.php.net/rfc/traits-with-interfaces
Share:
Read the RFC: Interface Default Methods victor avatar
victor
voted no
RSS Feed Contribute Watch on YouTube Our License
© 2024 RFC Vote. This project is open source. Contribute and collaborate with us!