Re: [RFC] Increment/Decrement Fixes
| From: | Mark Randall | Date: | Sun, 08 Mar 2020 20:01:01 +0000 |
| Subject: | Re: [RFC] Increment/Decrement Fixes | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108902@lists.php.net to get a copy of this message | ||
On 08/03/2020 19:31, Rowan Tommins wrote:
On 01/03/2020 21:23, Rowan Tommins wrote:It reads better than before. IMO option c) is definitely the absolutely superior option for the long-term health of the ecosystem, of that I have absolutely no doubt at all. Simply, if it's arithmatic on something that's not a number, and isn't an overloaded object, it should throw. But that seems like it's too far away... so I could *maybe* get behind subtracting from null becoming -1, but I really don't like it. It just feels so wrong, but the only thing that feels worse is that we probably couldn't pass removing null++, at least in the base version, and that may set up null-- as the least-worst option. -- Mark Randallhttps://wiki.php.net/rfc/increment_decrement_fixes