rfc:functional-interfaces

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:functional-interfaces [2016/04/18 11:38] – Fix markup to allow full example code for "Compiler Error 4" salatherfc:functional-interfaces [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 3: Line 3:
   * Date: 2016-04-17   * Date: 2016-04-17
   * Author: krakjoe   * Author: krakjoe
-  * Status: Under Discussion+  * Status: Declined
   * First Published at: http://wiki.php.net/rfc/functional-interfaces   * First Published at: http://wiki.php.net/rfc/functional-interfaces
  
Line 35: Line 35:
 </code> </code>
  
-There is enough information in the code above for the compiler to reason that $cb should implement IFoo, and obviously be a Closure.+There is enough information in the code above for the engine to reason that $cb should implement IFoo, and obviously be a Closure.
  
 The engine generates the appropriate class entry using the closure as the only public method, having easily determined the correct name for that method (there is, and can only be, one possible candidate). The engine generates the appropriate class entry using the closure as the only public method, having easily determined the correct name for that method (there is, and can only be, one possible candidate).
Line 343: Line 343:
  
 This looks as if ''Interface'' somehow uses ''$thing''. This looks as if ''Interface'' somehow uses ''$thing''.
 +
 +===== Vote =====
 +
 +Voting started on May 15th, ended May 29th 2016.
 +
 +<doodle title="Accept functional interfaces? (2/3+1 majority required)" auth="krakjoe" voteType="single" closed="true">
 +   * Yes
 +   * No
 +</doodle>
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
Line 357: Line 366:
 ==== To Opcache ==== ==== To Opcache ====
 Opcache may need a trivial patching. Opcache may need a trivial patching.
- 
-===== Open Issues ===== 
-TBD 
  
 ===== Future Scope ===== ===== Future Scope =====
-This sections details areas where the feature might be improved in futurebut that are not currently proposed in this RFC.+When the concept of functional interfaces is implemented, it may be worth discussing the coercionor explicit cast of callables.
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
rfc/functional-interfaces.1460979519.txt.gz · Last modified: 2017/09/22 13:28 (external edit)