rfc:reserve_more_types_in_php_7
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:reserve_more_types_in_php_7 [2015/02/19 00:30] – Formatting levim | rfc:reserve_more_types_in_php_7 [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Reserve More Types in PHP 7 ====== | ====== PHP RFC: Reserve More Types in PHP 7 ====== | ||
- | * Version: 1.0 | + | * Version: 1.1 |
* Date: 2015-02-18 | * Date: 2015-02-18 | ||
* Author: Levi Morrison < | * Author: Levi Morrison < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 9: | Line 9: | ||
This RFC prevents the use of the following words to be used as a class, interface or trait name: | This RFC prevents the use of the following words to be used as a class, interface or trait name: | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | |
* '' | * '' | ||
+ | * '' | ||
* '' | * '' | ||
- | This RFC does not fully reserve them as keywords; it only prohibits their usage as class, interface and trait names. | + | This RFC does not fully reserve them as keywords; it only prohibits their usage as class, interface and trait names. It also prevents them from being used in namespaces. |
+ | |||
+ | I have chosen to not reserve '' | ||
===== Rationale ===== | ===== Rationale ===== | ||
Line 35: | Line 37: | ||
Potentially future RFCs could: | Potentially future RFCs could: | ||
+ | * reserve the aliases of these types, such as '' | ||
* 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 '' | ||
* reserve other types such as '' | * reserve other types such as '' | ||
Line 42: | Line 46: | ||
This RFC requires at least two thirds of the votes to be " | This RFC requires at least two thirds of the votes to be " | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
There is currently no implementation. | There is currently no implementation. | ||
+ | |||
+ | ===== Version History ===== | ||
+ | |||
+ | * 1.0: Reserve '' | ||
+ | * 1.1: No longer reserve '' |
rfc/reserve_more_types_in_php_7.1424305810.txt.gz · Last modified: 2017/09/22 13:28 (external edit)