rfc:reserve_even_more_types_in_php_7

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
Last revisionBoth sides next revision
rfc:reserve_even_more_types_in_php_7 [2015/03/16 06:38] – Open voting pollitarfc:reserve_even_more_types_in_php_7 [2015/04/06 20:26] – add summary of vote nikic
Line 5: Line 5:
     * Heavily cribbed from Levi Morrison <levim@php.net>     * Heavily cribbed from Levi Morrison <levim@php.net>
     * https://wiki.php.net/rfc/reserve_more_types_in_php_7)     * https://wiki.php.net/rfc/reserve_more_types_in_php_7)
-  * Status: Under Discussion+  * Status: Partially Accepted (in PHP 7.0)
   * First Published at: http://wiki.php.net/rfc/reserve_even_more_types_in_php_7   * First Published at: http://wiki.php.net/rfc/reserve_even_more_types_in_php_7
  
Line 38: Line 38:
   * add explicit scalar type support for parameter and return types   * add explicit scalar type support for parameter and return types
   * add union types, such as ''int|false''   * add union types, such as ''int|false''
 +
 +===== Result =====
 +
 +The following class names are now **reserved**:
 +
 +  * "resource"
 +  * "object"
 +  * "mixed"
 +  * "numeric"
 +
 +The following class names have **not** been reserved:
 +
 +  * "scalar"
  
 ===== Vote ===== ===== Vote =====
Line 44: Line 57:
 This RFC requires at least two thirds of the votes for a given type name to be "yes" to pass, and also requires the passage of https://wiki.php.net/rfc/reserve_more_types_in_php_7 or one of the ScalarTypeHints RFC (which implicitly reserve the base types by using them). This RFC requires at least two thirds of the votes for a given type name to be "yes" to pass, and also requires the passage of https://wiki.php.net/rfc/reserve_more_types_in_php_7 or one of the ScalarTypeHints RFC (which implicitly reserve the base types by using them).
  
-<doodle title="Reserved Type: resource" auth="pollita" voteType="single" closed="false">+<doodle title="Reserved Type: resource" auth="pollita" voteType="single" closed="True">
    * Yes    * Yes
    * No    * No
Line 51: Line 64:
 . .
  
-<doodle title="Reserved Type: scalar" auth="pollita" voteType="single" closed="false">+<doodle title="Reserved Type: scalar" auth="pollita" voteType="single" closed="True">
    * Yes    * Yes
    * No    * No
Line 58: Line 71:
 . .
  
-<doodle title="Reserved Type: object" auth="pollita" voteType="single" closed="false">+<doodle title="Reserved Type: object" auth="pollita" voteType="single" closed="True">
    * Yes    * Yes
    * No    * No
Line 65: Line 78:
 . .
  
-<doodle title="Reserved Type: mixed" auth="pollita" voteType="single" closed="false">+<doodle title="Reserved Type: mixed" auth="pollita" voteType="single" closed="True">
    * Yes    * Yes
    * No    * No
Line 72: Line 85:
 . .
  
-<doodle title="Reserved Type: numeric" auth="pollita" voteType="single" closed="false">+<doodle title="Reserved Type: numeric" auth="pollita" voteType="single" closed="True">
    * Yes    * Yes
    * No    * No
 </doodle> </doodle>
 +
 +Voting opened on 2015-03-15 and will end on the later of 2015-03-29 or the close of all currently open Scalar Type Hint votes and Levi's scalar types reservation RFCs.
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
 There is currently no implementation. There is currently no implementation.
  
rfc/reserve_even_more_types_in_php_7.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1