On 11/04/2023 00:03, Larry Garfield wrote:
Here, I'll even give you a concrete
example:https://wiki.php.net/rfc/saner-inc-dec-operators
This is a good change to clean up an old buggy design. Let's suppose that we
were 100% certain it would pass with 100% approval. However, if someone is
doing something screwy and buggy it will change the behavior by making
previously-kinda-working-but-definitely-buggy code throw a Warning, and later
another oddball usage will throw a deprecation, and then eventually in PHP 9 a
TypeError.
Perhaps not the best example. There's definitely some cases that need
cleaning up; but deprecating inc/dec for anything but numeric values is
IMO too extreme in what it proposes making it little more than syntactic
sugar for the += and -= operators, only working with numeric values.
https://wiki.php.net/rfc/saner-array-sum-product might be a better example.
--
Mark Baker
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php