[RFC] Path to Saner Increment/Decrement operators
| From: | G. P. B. | Date: | Tue, 17 Jan 2023 14:28:26 +0000 |
| Subject: | [RFC] Path to Saner Increment/Decrement operators | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-119290@lists.php.net to get a copy of this message | ||
Hello Internals,
I would like to start the discussion on the Path to Saner
Increment/Decrement operators RFC:
https://wiki.php.net/rfc/saner-inc-dec-operators
The goal of this RFC is to reduce language complexity by making $v++ behave
like $v += 1 and $v-- behave like $v -= 1;
I am expecting the contentious part of the proposal to be the deprecation
of the PERL string increment feature to achieve the aforementioned goal.
However, I believe the benefits of aligning the behaviour of the
increment/decrement operators with addition/subtraction are larger than
keeping support for the PERL increment, which in its current state has
various shortcomings.
Best regards,
George P. Banyard