Re: Request for opinions: bug vs feature - change intokenization of yield from
| From: | Marco Aurélio Deleu | Date: | Sat, 20 Jul 2024 14:35:00 +0000 |
| Subject: | Re: Request for opinions: bug vs feature - change intokenization of yield from | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124512@lists.php.net to get a copy of this message | ||
> On 20 Jul 2024, at 11:30, Tim Düsterhus <tim@bastelstu.be> wrote:
>
> Hi
>
>> On 7/19/24 00:51, Christoph M. Becker wrote:
>> And frankly, how much code would be affected? I mean, does anybody
>> actually put a comment between
yield and
>> from? Is there a case
>> where this may make sense? "Because we can" isn't a strong argument, in
>> my opinion.
>
> I don't really follow this line of argumentation:
>
> If folks do not use the syntax anyways, then we do not need to have this discussion, because
> the tools can just ignore it existing. That also means we do not need to revert the change in PHP.
>
> If folks use the syntax, then reverting the change is a breaking change for them.
>
> So either the revert is not doing anything at all, or the revert is actively harmful. I do not
> see a situation where reverting the change is a value-add.
>
> Best regards
> Tim Düsterhus
The value add of the revert is because time is a moving target. We don't think anyone is using
it _yet_, given the circumstances that made this happen. Wait long enough and the only guarantee we
have is entropy.