On 08/03/2020 19:31, Rowan Tommins wrote:
On 01/03/2020 21:23, Rowan Tommins wrote:
https://wiki.php.net/rfc/increment_decrement_fixes

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 Randall

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to