Re: [RFC] Deprecate type juggling to and from bool type within the function type juggling context
| From: | Larry Garfield | Date: | Tue, 03 Jun 2025 16:57:10 +0000 |
| Subject: | Re: [RFC] Deprecate type juggling to and from bool type within the function type juggling context | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127566@lists.php.net to get a copy of this message | ||
On Mon, Jun 2, 2025, at 4:02 PM, Rob Landers wrote:
> The rules around coercion are pretty
> simple and well documented.
Just to note, however simple or not simple they are in 8.4, they are substantially simpler and more
logical in 8.4 than they were in 7.0 when strict typing was introduced. And most of that improved
simplicity is due to Gina's various RFCs along these lines, which have been highly beneficial
even if they sometimes get pushback from the "PHP doesn't care about BC" crowd.
That doesn't inherently mean this RFC is good or bad, but the trend/track record has been
squeezing the weirdness out of type juggling until weak mode and strict mode are close enough to
touch, and the language is better for it.
--Larry Garfield