[rfc] normalize increment and decrement operators
| From: | Tjerk Meesters | Date: | Sat, 15 Feb 2014 02:12:19 +0000 |
| Subject: | [rfc] normalize increment and decrement operators | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-72621@lists.php.net to get a copy of this message | ||
Hi all,
Following the earlier discussion of adding decrement for strings to
complement the existing alphanumeric increment feature, I've written a
proposal to normalize the behaviour across boolean and null values.
https://wiki.php.net/rfc/normalize_inc_dec
Based on some earlier comments, boolean and null values can be treated in
two distinct way, both of which are demonstrated in the rfc; I'm hoping
that before voting takes place we can eliminate one voting option
altogether.
It also aims to deprecate string-based increments using
++; instead, it
would introduce str_inc() and str_dec() as a regular function.
Let me know your thoughts.
--
--
Tjerk