Re: Request for opinions: bug vs feature - change intokenization of yield from

From: Date: Sun, 21 Jul 2024 11:48:32 +0000
Subject: Re: Request for opinions: bug vs feature - change intokenization of yield from
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi

On 7/21/24 00:16, Larry Garfield wrote:
Yes, any syntax change means tools need to adapt, but that doesn't mean tokenization can change randomly and accidentally. Syntax changes require an RFC. If an RFC passes that necessitates SA tools update, so be it. (That happens almost every version.) But that's still an RFC change. I would agree with reverting this change for now. The odds of it breaking something for someone are vanishingly small, and it's a bug, not a feature. If we want it to be a feature, we can make an RFC for it.
It has become a feature no later than November, 23rd, 2023, when PHP 8.3.0 has been released. There is no bug, token_get_all() still is working within its specification. We can't just break backwards compatibility with well-formed PHP scripts when it causes an inconvenience for tool authors and at the same time bend over backwards with an impact analysis to find out if the deprecation (not removal!) of a property that literally always is null would be too much of a backwards compatibility impact. The PHP users writing PHP scripts accepted by PHP 8.3 and visually fitting into PHP’s syntax with regard to comment placement are not at fault here and shouldn't bear the consequences. Best regards Tim Düsterhus

Thread (32 messages)

« previous php.internals (#124534) next »