rfc:saner-inc-dec-operators
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:saner-inc-dec-operators [2023/06/19 14:31] – Write small draft section for userland impact girgias | rfc:saner-inc-dec-operators [2023/07/17 14:52] (current) – Implemented girgias | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Date: 2022-11-21 | * Date: 2022-11-21 | ||
* Author: George Peter Banyard, < | * Author: George Peter Banyard, < | ||
- | * Status: | + | * Status: |
* Target Version: PHP 8.3, PHP 8.(3+x), and PHP 9.0 | * Target Version: PHP 8.3, PHP 8.(3+x), and PHP 9.0 | ||
- | * Implementation: | + | * Implementation: |
* First Published at: [[http:// | * First Published at: [[http:// | ||
Line 68: | Line 68: | ||
</ | </ | ||
- | The only examples of an internal class that does not implements | + | The only examples of an internal class that does not implement |
<PHP> | <PHP> | ||
$o = tidy_parse_string("< | $o = tidy_parse_string("< | ||
Line 525: | Line 525: | ||
Therefore, we consider the value of reducing the semantic complexity of PHP higher than keeping support for this feature in its current form. | Therefore, we consider the value of reducing the semantic complexity of PHP higher than keeping support for this feature in its current form. | ||
- | The introduction of the < | + | The introduction of the < |
<PHP> | <PHP> | ||
function str_increment_polyfill(string $s): string { | function str_increment_polyfill(string $s): string { | ||
Line 550: | Line 550: | ||
</ | </ | ||
- | ==== Impact on userland ==== | + | ==== Impact |
- | To determine the impact of this RFC on userland the static analysis tool [[https:// | + | To determine the impact of this RFC on userland, the static analysis tool [[https:// |
- | The impact of this RFC is rather limited and boils down to a couple of use cases for the PERL string increment: | + | The only non-false-positive |
- | * Generating a list of valid unicode (or ASCII) characters, the most popular project using this is HTMLPurifier (issue got addressed in https:// | + | |
- | * Generating sequential IDs, this only happens in amphp/amp, however a lot of other project depend on this library | + | |
- | * Incrementing a spreadsheet column | + | |
- | Nearly every other case is a false-positive that is just incrementing a numeric string | + | * Generating |
+ | * Generating sequential IDs. The main library doing this is amphp/amp, however a lot of other projects depend on this library. | ||
+ | * Incrementing a spreadsheet column. | ||
In any of these cases, no deprecation notices would be emitted in the first stage of this RFC. | In any of these cases, no deprecation notices would be emitted in the first stage of this RFC. | ||
- | As the first stage of this RFC also provides the < | + | As the first stage of this RFC also provides the < |
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 586: | Line 585: | ||
As per the voting RFC a yes/no vote with a 2/3 majority is needed for this proposal to be accepted. | As per the voting RFC a yes/no vote with a 2/3 majority is needed for this proposal to be accepted. | ||
- | Voting started on 2023-XX-XX and will end on 2023-XX-XX. | + | Voting started on 2023-06-28 and will end on 2023-07-12. |
<doodle title=" | <doodle title=" | ||
* Yes | * Yes | ||
Line 598: | Line 597: | ||
After the project is implemented, | After the project is implemented, | ||
- | * the version(s) it was merged into | + | * Version: PHP 8.3 |
- | * a link to the git commit(s) | + | * Implementation : |
* a link to the PHP manual entry for the feature | * a link to the PHP manual entry for the feature | ||
===== References ===== | ===== References ===== | ||
rfc/saner-inc-dec-operators.1687185113.txt.gz · Last modified: 2023/06/19 14:31 by girgias