rfc:callable

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
Next revisionBoth sides next revision
rfc:callable [2011/06/07 15:59] – [The problem] weierophinneyrfc:callable [2011/06/16 00:11] – [Previous discussions] stas
Line 1: Line 1:
-====== Request for Comments: How to write RFCs ======+====== Request for Comments: callable type hint ======
   * Version: 1.0   * Version: 1.0
   * Date: 2011-06-07   * Date: 2011-06-07
Line 34: Line 34:
  
   * The only arguments against the idea came from Stas, [[http://php.markmail.org/message/hhdjdfo3o34mcj2t?q=callable|making the argument]];   * The only arguments against the idea came from Stas, [[http://php.markmail.org/message/hhdjdfo3o34mcj2t?q=callable|making the argument]];
-    * 'callable' are nothing different then 'balanced binary tree' and 'readable file', and none of them make sense to have typehints for+    * 'callable' is a data structure not unlike 'balanced binary tree' and 'readable file', and none of them make sense have as a part of the language syntax. They belong in userspace.  
-    * A "strict typing error" is hard to handle in user-space gracefully +    * A "strict typing error" is hard to handle in user-space gracefully. 
-  * Everyone else seem to like the idea.+  * Everyone else seem to like the idea, so far.
   * As for the patch itself, Felipe pointed out that the patch is missing an method in ext/reflection to retrieve the typehint information.   * As for the patch itself, Felipe pointed out that the patch is missing an method in ext/reflection to retrieve the typehint information.
 +  * Things to finalize:
 +    * Type name: documentation uses 'callback', not 'callable' as proposed
 +    * Are initializers allowed?
 +    * Does validation include visibility, as is_callable() does?
 +    * Reflection support
 +    * Arginfo support
  
  
rfc/callable.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1