rfc:sorting_enum
Differences
This shows you the differences between two versions of the page.
rfc:sorting_enum [2021/09/02 16:47] – created crell | rfc:sorting_enum [2021/09/02 17:45] (current) – crell | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This RFC proposes to add a built-in Enumeration to PHP | + | This RFC proposes to add a built-in Enumeration to PHP to specify the possible return values of sorting/ |
===== Proposal ===== | ===== Proposal ===== | ||
- | All the features and examples of the proposal. | ||
- | To [[http:// | + | This RFC includes two changes, specifically. |
- | for inclusion in one of the world' | + | |
- | Remember that the RFC contents should be easily reusable | + | One, the following Enumeration is defined |
- | If applicable, you may wish to use the language specification as a reference. | + | <code php> |
+ | enum Ordering | ||
+ | { | ||
+ | case LeftGreater; | ||
+ | case RightGreater; | ||
+ | case Equal; | ||
+ | case Uncomparable; | ||
+ | } | ||
+ | </ | ||
- | ===== Backward Incompatible Changes ===== | + | Second, all sorting |
- | What breaks, and what is the justification for it? | + | |
- | ===== Proposed PHP Version(s) ===== | + | The primary benefit of this change is usability. |
- | List the proposed PHP versions that the feature will be included in. | + | |
- | ===== RFC Impact | + | ==== Uncomparable |
- | ==== To SAPIs ==== | + | |
- | Describe the impact to CLI, Development web server, embedded PHP etc. | + | |
- | ==== To Existing Extensions ==== | + | PHP currently has no explicit way to indicate that two parameters are simply not logically comparable. |
- | Will existing extensions be affected? | + | |
- | ==== To Opcache ==== | + | PHP' |
- | It is necessary to develop RFC' | + | |
- | Please explain how you have verified your RFC's compatibility with opcache. | + | ===== Backward Incompatible Changes ===== |
- | ==== New Constants ==== | + | The global namespace symbol " |
- | Describe any new constants so they can be accurately and comprehensively explained in the PHP documentation. | + | |
- | ==== php.ini Defaults | + | ===== Proposed PHP Version(s) ===== |
- | If there are any php.ini settings then list: | + | |
- | * hardcoded default values | + | |
- | * php.ini-development values | + | |
- | * php.ini-production values | + | |
- | ===== Open Issues ===== | + | PHP 8.2 |
- | Make sure there are no open issues when the vote starts! | + | |
- | ===== Unaffected PHP Functionality | + | ===== RFC Impact |
- | List existing areas/ | + | |
- | This helps avoid any ambiguity, shows that you have thought deeply about the RFC's impact, and helps reduces mail list noise. | + | ===== Open Issues ===== |
+ | |||
+ | The specific case names are subject to inevitable bikeshedding. | ||
===== Future Scope ===== | ===== Future Scope ===== | ||
- | This section details areas where the feature might be improved | + | |
+ | This RFC very specifically does not remove or deprecate | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | Include these so readers know where you are heading and can discuss the proposed voting options. | ||
- | ===== Patches and Tests ===== | + | This is a simple yes/no vote, requiring 2/3 to pass. |
- | Links to any external patches and tests go here. | + | |
- | If there is no patch, make it clear who will create a patch, or whether a volunteer to help with implementation is needed. | + | ===== Patches and Tests ===== |
- | + | ||
- | Make it clear if the patch is intended to be the final patch, or is just a prototype. | + | |
- | For changes affecting the core language, you should also provide a patch for the language specification. | + | Pending... |
===== Implementation ===== | ===== Implementation ===== |
rfc/sorting_enum.1630601240.txt.gz · Last modified: 2021/09/02 16:47 by crell