Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124513 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 511591A00B7 for ; Sat, 20 Jul 2024 14:50:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721487125; bh=repyXH+C1C1YTmDDHN24a7ph1exTCpWy9+nv0tZ/sVg=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=QgnyuhmkHA9fe2eOW0hLAn/NgHdzquWQ37tFkb9uJx6k6bfxWstjGcIBjlGO3bm1n EK+n96xZQ4/HchZpoBQr1uq5BWNK9qx3Ke24EyQ3cV+l4xOtk9DqgQdD9U2pYpF//4 vKaLl7PrAvhIGbqLTmCd88av08I3VNEsWL5en0L4T0crHjyuPqMLGdBXKkhDZRz1P1 uFFLjvtrYoB54pkZiB8aBghdGvUdD2Y+LBilmnyky5Zo2twkQweCqhBBZnxtlYbAN6 K1AciVKkxNReIvbe5s8QADHX8j+UmNFJh9UDmoSLMTOAIA1XUfleiaoKkk8fm8NtfW HpzDc4QM54YKQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CF6FA18004B for ; Sat, 20 Jul 2024 14:52:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh1-smtp.messagingengine.com (fhigh1-smtp.messagingengine.com [103.168.172.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 20 Jul 2024 14:52:03 +0000 (UTC) Received: from compute9.internal (compute9.nyi.internal [10.202.2.228]) by mailfhigh.nyi.internal (Postfix) with ESMTP id AA4311140169; Sat, 20 Jul 2024 10:50:30 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute9.internal (MEProxy); Sat, 20 Jul 2024 10:50:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1721487030; x= 1721573430; bh=uq6wLIgBNvIusvPFXhtk1PyktX4IQ0743B36FtAGzSE=; b=b VMewP0ibC7If/umWOELgGaotsmgn4SnmApzdcKwDjG3cfRtGF26ZzWijCIIjyhqF AWnsoAK9Je0rzKzdddfQhOT0KGEYOUHmV0CGH79utbrPGyq4SOlssMcsSiL6ETHl TlLgUyPF6RiYRywPsi0jyYsVMrS6b0WScPX+Q6/YQO1K22Ptd/z9o/WToe0qUJMH TA3yn66rS5YCTGix4B0V0vFgfsgrPhiVtx8jcmScqKrPDrUGSKRvr/KcfkSAolCg HAxt5PtpmwAABnsyV4+43F8SL6EHbX4qNTSZ0dMo0jxjJObIdtIrlVe1wBqtjYQ7 /StzwAdDctYEyk40mADHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1721487030; x=1721573430; bh=uq6wLIgBNvIusvPFXhtk1PyktX4I Q0743B36FtAGzSE=; b=gbuAdQHJPWZiFwpWirubZ/7Sx19CdmnOEiLK1iIAW2GC xvEnCn25DCmTBYPruw4lny7MGT/bTsmBxm+kZIwEW2MSujKp1qFOr7bk3PfrqvF/ Cs4qtSJ3cgM6aZ0zbSRxK2kCz58L3x7olUG1PtdUdZ2scqVOKAur8vBZlmFE5DCW XEcnmxWfGbumpUmC9z9eHGmCCJkNUPDoPv3S1qLh0EPbZCs0iewH07nrk6x9dYnK H+nT1LuG+9fJ5SOtFvwm6wLJMpWgqc2EyO48DvIjOwatzxtjEHu6DecaryLD/wXM IqcugEObIKuNtvLB2lSEZ2H4IZIhiDglaVqW2IVTBQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheefgdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesrgdtreerreerjeenucfhrhhomhepfdftohgs ucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhlvggurdgtohguvghsqeenucggtffrrg htthgvrhhnpedvheekteelveetfeevgeekgfffvdeuhfelveehvdetiefggedtfeejheet gffhueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hrohgssegsohhtthhlvggurdgtohguvghs X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1F18F15A0092; Sat, 20 Jul 2024 10:50:30 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-568-g843fbadbe-fm-20240701.003-g843fbadb Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Message-ID: <9fd143d3-920a-4865-b425-ebf852ef54b9@app.fastmail.com> In-Reply-To: References: <237f2004-92dd-46e5-9946-91b8c8d97166@bastelstu.be> Date: Sat, 20 Jul 2024 16:50:09 +0200 To: =?UTF-8?Q?Marco_Aur=C3=A9lio_Deleu?= , =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: "Christoph M. Becker" , "Juliette Reinders Folmer" , "PHP internals" Subject: Re: [PHP-DEV] Request for opinions: bug vs feature - change intokenization of yield from Content-Type: multipart/alternative; boundary=151044dcc81a4d8d8a9230b1938e25e6 From: rob@bottled.codes ("Rob Landers") --151044dcc81a4d8d8a9230b1938e25e6 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, Jul 20, 2024, at 16:35, Marco Aur=C3=A9lio Deleu wrote: >=20 > > On 20 Jul 2024, at 11:30, Tim D=C3=BCsterhus wrot= e: > >=20 > > =EF=BB=BFHi > >=20 > >> 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 argumen= t, in > >> my opinion. > >=20 > > I don't really follow this line of argumentation: > >=20 > > 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 als= o means we do not need to revert the change in PHP. > >=20 > > If folks use the syntax, then reverting the change is a breaking cha= nge for them. > >=20 > > 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. > >=20 > > Best regards > > Tim D=C3=BCsterhus >=20 > 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 thi= s happen. Wait long enough and the only guarantee we have is entropy. Even if people are using it, if fixing it is better than leaving it=E2=80= =A6 Oh well.=20 A perfect example is the GMP class being left not =E2=80=9Cfinal=E2=80=9D= that allows for some really nice semantics. It=E2=80=99s currently bein= g voted on and it appears an unanimous vote to make it final will pass. The language can and will change. Sometimes in ways we don=E2=80=99t lik= e.=20 =E2=80=94 Rob --151044dcc81a4d8d8a9230b1938e25e6 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable

=
On Sat, Jul 20, 2024, at 16:35, Marco Aur=C3=A9lio Deleu = wrote:

=
> On 20 Jul 2024, at 11:30, Tim D=C3=BCsterhus <tim@bastelstu.be> wrote:

> =EF=BB=BFHi
>> On 7/19/24 00:51, Christoph M. Becker wrote:
>> And frankly, how much code would be affected?  I m= ean, does anybody
>> actually put a comment between = `yield` and `from`?  Is there a case
>> where t= his may make sense?  "Because we can" isn't a strong argument, in
>> my opinion.

> I don't really follow this line of argumentation:
&g= t; 
> If folks do not use the syntax anyways, then= we do not need to have this discussion, because the tools can just igno= re it existing. That also means we do not need to revert the change in P= HP.

> 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 whe= re reverting the change is a value-add.

> Best regards
> Tim D=C3=BCsterhus
=

The value add of the revert is because time is a mov= ing target. We don't think anyone is using it _yet_, given the circumsta= nces that made this happen. Wait long enough and the only guarantee we h= ave is entropy.

Even if people= are using it, if fixing it is better than leaving it=E2=80=A6 Oh well. =

A perfect example is the GMP class being l= eft not =E2=80=9Cfinal=E2=80=9D that allows for some really nice semanti= cs. It=E2=80=99s currently being voted on and it appears an unanimous vo= te to make it final will pass.

The language= can and will change. Sometimes in ways we don=E2=80=99t like. 

=E2=80=94 Rob
= --151044dcc81a4d8d8a9230b1938e25e6--