Re: Future stability of PHP?

From: Date: Mon, 10 Apr 2023 22:23:53 +0000
Subject: Re: Future stability of PHP?
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-119889@lists.php.net to get a copy of this message
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

« previous php.internals (#119889) next »