rfc:interface-default-methods

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:interface-default-methods [2023/07/03 00:55] – 8.NEXT to 8.3 levimrfc:interface-default-methods [2023/07/17 15:06] (current) – Status: declined levim
Line 3: Line 3:
   * Date: 2022-06-27   * Date: 2022-06-27
   * Author: Levi Morrison, levim@php.net   * Author: Levi Morrison, levim@php.net
-  * Status: Voting+  * Status: Declined
   * First Published at: http://wiki.php.net/rfc/interface-default-methods   * First Published at: http://wiki.php.net/rfc/interface-default-methods
  
Line 44: Line 44:
   - If the above rules fail, then the class needs to implement the method itself, possibly delegating to one of the interfaces.   - If the above rules fail, then the class needs to implement the method itself, possibly delegating to one of the interfaces.
  
-This RFC proposes the same. However, rule 2 has not yet been implemented so I am unsure how feasible it is.+This RFC proposes the same. However, rule 2 is only partially implemented at this time.
  
 Here's an example of a class delegating to another method: Here's an example of a class delegating to another method:
Line 114: Line 114:
  
 ==== Cancelling Default Methods ==== ==== Cancelling Default Methods ====
-If an interface method extends parent interface method which has a default, this prevents using the default method for classes which implement the child interface but not directly implement the parent one:+If an interface method extends parent interface method which has a default, this prevents using the default method for classes which implement the child interface but do not directly implement the parent one:
  
 <PHP> <PHP>
rfc/interface-default-methods.1688345702.txt.gz · Last modified: 2023/07/03 00:55 by levim