Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124515 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 5B4141A00B7 for ; Sat, 20 Jul 2024 15:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721490030; bh=5Q4kjELqmx3XZd4eS6IwMM7vvNyZ0721o7d9Taf5n6o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Mg7ols+VI+PNefMOOWFxTMYWTN3AQa6IF4IuqLczz40B8LTwfJgnody7H33iIXHvh 0T0hOtmE1fyTQ2e0sfVYjq1Zkd6qQYVHC3StTCAGb3oX6vMAx42yA4jHATHDpZ+wG8 hU7CaUapceAwyARh9WcaSK4VZ0YfLZ+Kmqotat89uwtqMOsvl2GzlD2OEnf1xVG75h 06qzzQ8zsMGufFJwlZsBpLA3fgck/LYpOPy14oVV98MCNwIIZQqaxwaG7Xxivrfeui uR56+SAsuda/w4GZgHIoUVRfjIo2DF08T1XBnzbUKUcPHsDnYFKvAJz/mA2WpXbxPN BK32Mik6cL5Qg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 43DEC18003E for ; Sat, 20 Jul 2024 15:40:29 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-vk1-f175.google.com (mail-vk1-f175.google.com [209.85.221.175]) (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 15:40:28 +0000 (UTC) Received: by mail-vk1-f175.google.com with SMTP id 71dfb90a1353d-4f30245cf20so1024665e0c.0 for ; Sat, 20 Jul 2024 08:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721489936; x=1722094736; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Lk6fk0O+3fPLBlxYYFXGvaMAIgnqsrZhOjG/ZRjTJ/U=; b=HQvWdBXbcA7waoqxRuY2adkU6TwBiDdn+KP9INx81ym+xJbxDkuwMsjxIoq5+NE2BM s8o4BpZ/fljCiHPCnoyCB7rJLlJmqGHstRGp7609Qg55ZXdCmsEr/1Omh/9OK4dn5ID6 8MqzkcgWNESONfjEfVNklbluQzuyLCOH6X/sDutP3fJNDVYuvIEERajU0arvYagPns40 0qIX5MvJZyjXdYV0vOXFl3sz+tTc/QCJvyA2jEs6iuiKCjFkG+5uXvXmh8lpkKDbP1wK N8HcbgNhDEYD6GF/WNA/HZ1heNeGXB2PzrqWws9SY9f1b8yRyWe4bQBF8YtyBi+xG/lx PCcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721489936; x=1722094736; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Lk6fk0O+3fPLBlxYYFXGvaMAIgnqsrZhOjG/ZRjTJ/U=; b=pWbpCWzN944QxCVg58fyCVs3L2nbagkuRSsJ9gJO/83oLc2dIO+3Dg/iypCqt7tCEc GN4Ej6ADfmo3aKh+qUlWevowlu5zAsoDXPBVJY9B1bTLZk5WEikmdtnZBdCBvrhJA5p6 yd6yyVpYWs+ZXQUEzSHRRzPsBZUCf+svYd+YSXqDQ5wEiDi8cUnMr6kCmCpDQ5asod9/ O0+EDv5N3q9ngD9Ncdy/qkNvlt9u+SxsOW8OaaI6mI+gjMechzXgd+YG+d/b+Wd/edS1 8W3tKOFS+0hRrjR2z7VIIM+B7g3NuTWG6YMeZk0o9yw9VGcQ5V2DTh2cHad9yKFYlhSH +QQw== X-Forwarded-Encrypted: i=1; AJvYcCV9cky7M7zhGHnslvw3/ptCE/HzbRy9df3H6IZxjAkajvtDg09TU80qM8Y8lHJmInU33bdrh+OExi7XsnE95TPcekaVinch9g== X-Gm-Message-State: AOJu0YxG2xNBt3pgbG443WlDpEX49/2UaJ5UupxUjuBF9/36NCIGFW9m EOJZZ93Mne0me3PCdtV1Iz0pXBE0HOhT4wtv7OFHdcKFnJ+rumISRUxZk0Z0NGklqrVLeHJsrEE 8amIYXc01BThsbHIt+8aWQ20eAAc= X-Google-Smtp-Source: AGHT+IEzEs2l/wBbI7MM63Zo8ARg2Rg9vNNijENtGuHDDRo9bPU0vBW6qeT/04kAWmKp0x2eD9d9JcuAtewQ4Fynfk4= X-Received: by 2002:a05:6122:3119:b0:4ef:247f:b633 with SMTP id 71dfb90a1353d-4f5066bd067mr3183464e0c.5.1721489936129; Sat, 20 Jul 2024 08:38:56 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <66984FD0.5090805@adviesenzo.nl> <84999002-cff1-436a-8036-b7b4facb2cba@gmx.de> <237f2004-92dd-46e5-9946-91b8c8d97166@bastelstu.be> In-Reply-To: <237f2004-92dd-46e5-9946-91b8c8d97166@bastelstu.be> Date: Sat, 20 Jul 2024 10:38:45 -0500 Message-ID: Subject: Re: [PHP-DEV] Request for opinions: bug vs feature - change intokenization of yield from To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: "Christoph M. Becker" , =?UTF-8?Q?Marco_Aur=C3=A9lio_Deleu?= , Juliette Reinders Folmer , PHP internals Content-Type: multipart/alternative; boundary="00000000000020a789061daf9c03" From: mweierophinney@gmail.com ("Matthew Weier O'Phinney") --00000000000020a789061daf9c03 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jul 20, 2024, 9:31=E2=80=AFAM Tim D=C3=BCsterhus = 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, i= n > > 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. > By this line of reasoning, any bug that makes it into the engine that somebody finds a use for shouldn't be fixed. I totally understand wanting to keep this in, but because it made it in without an RFC, it's (a) inconsistent with other areas of the language, and (b) does not have a full design which includes tokenizer support. Considering the brief time it's been in the engine, and the fact that it's not documented, I feel it should be reverted and only re-added if someone takes the time and effort to propose the change properly. > > --00000000000020a789061daf9c03 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Jul 20, 2024, 9:31=E2=80=AFAM Tim D=C3=BCsterh= us <tim@bastelstu.be> wrote:

By this line of reasoning, any bug that makes it into the engine = that somebody finds a use for shouldn't be fixed.=C2=A0

I totally understand wanting to keep = this in, but because it made it in without an RFC, it's (a) inconsisten= t with other areas of the language, and (b) does not have a full design whi= ch includes tokenizer support.=C2=A0

Considering the brief time it's been in the engine, and th= e fact that it's not documented, I feel it should be reverted and only = re-added if someone takes the time and effort to propose the change properl= y.=C2=A0

--00000000000020a789061daf9c03--