Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126382 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 2BFBE1A00BC for ; Wed, 12 Feb 2025 21:32:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1739395765; bh=o/m3MrQvBMLqm9E17gisMHyxDWnFp3lQvliQ8Z1xrCA=; h=Date:From:To:In-Reply-To:References:Subject:From; b=OfOkxHjyiGAsAXZL9GWcPPXbrPtOyteh1ysXmR9uOS+DBWmpVND/N6zYdLlNadMLu xvzDa4rcrVrll5g+ySTNAGcG9KwYXphOGftjzB5lX13L/5HYUobFHWmGTn7hTU76V/ n+MXc/hg1Tgh3GkneTyumSTxeFuhDk659xbxCrEN3pu9LBDr4hSAT3I1KHiv1cDQDm oT29UnTDidX48pa26xm6I94gPwmkZmBMgcxtMFIdKeXyWtzAhNttaCMrUj/9l1JnXZ RN2rWAooG95xvePpcxPMGXRcV+0vAXh+BdjI1daQxYuW90pBkHO8WCvOPg70e0NAd2 f3NdBn7g903nw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 24656180061 for ; Wed, 12 Feb 2025 21:29:24 +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.9 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout-a7-smtp.messagingengine.com (fout-a7-smtp.messagingengine.com [103.168.172.150]) (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 ; Wed, 12 Feb 2025 21:29:23 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 4F886138017E for ; Wed, 12 Feb 2025 16:32:06 -0500 (EST) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-10.internal (MEProxy); Wed, 12 Feb 2025 16:32:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding: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=fm3; t=1739395926; x=1739482326; bh=I2U1KpR5C7ZK/4rFbp9Zf Td0vW5vnZCftq+XL3rIr9M=; b=k58k29c5gW4d5HnLgW6YA2F6ApbUaVCsnymi3 H1I9cbCiaWLpvApX3x62TUKZ+Svhidjmzx8KijMwLQ1F7HY6wxJ0esCTxWXikNje Yn1cJA4EURjMnaBme6tSO4E4e4YQpPWFyHVVoY8Dowyr4i/i9LjufTR8a0xFVPDv 3Az3pvR1XrkF+7fQTZuyCL4HQvuJoddOIE0bai90mQ/Hmpi2CAiU78ie5JHo1rOd 56YB8E9+e6UtXFY43GCqWUuDqtl0vv7Tl3KOoJ7xJmT9V56rGR3d2rXjTOJZ88IJ WNdwxLDl13GYPYczVtQw9GOGCJ1KYa7zACHiYsUTHWO0YIWAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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-sender :x-me-sender:x-sasl-enc; s=fm3; t=1739395926; x=1739482326; bh=I 2U1KpR5C7ZK/4rFbp9ZfTd0vW5vnZCftq+XL3rIr9M=; b=k0/1sX8Fs3zMd/CmN bFtyb9sfdide21DTlRbDjSVgMEHXFP10uLSqvEikxdyvlLxJRPFRs14fuPQTaOxV QdbbiMrZR4i/YDKU3pFkoMhYM71QGQBFSf2VLu81f1tBet+R00AFoVwMB4pF5H0V qxFyom/O8fGTTCACIjy3DGxkg0RdzQXAyQSPpC9fy6zq2z8O0UlmDKt+TEM95vNe kS2s0y0UXhKaTbPGCA3npVj9FREGY7/WYyqN/9d73VWU+Zjg3fiCMstMM/50HfaD ucvf4NLokp1GJb4XljOOOdZH4QkVyt4J+vG9RkMoDKstce9lej+eUGj9VJWY241g 1jHcA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeggeeljecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvkfgjfhfutgfgsehtqhertdertdej necuhfhrohhmpedfnfgrrhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfh hivghlughtvggthhdrtghomheqnecuggftrfgrthhtvghrnhepleduvdduleekieejkeeu kefgvdeifeelveevjeefhfeftdeugfduieeuheffleeknecuffhomhgrihhnpehphhhprd hnvghtpdhgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomhdpnh gspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgv rhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id EA1853020080; Wed, 12 Feb 2025 16:32:05 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Wed, 12 Feb 2025 15:31:44 -0600 To: "php internals" Message-ID: <3d188924-33cf-4c3b-b7ff-3bd29232f16a@app.fastmail.com> In-Reply-To: References: Subject: Re: [PHP-DEV] Re: RFC: Marking return values as important (#[\NoDiscard]) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Wed, Feb 12, 2025, at 5:52 AM, Volker Dusch wrote: > On Wed, Jan 29, 2025 at 4:12=E2=80=AFPM Tim D=C3=BCsterhus wrote: >> Volker and I would like to start discussion on our RFC to allow "Mark= ing=20 >> return values as important (#[\NoDiscard])". >>=20 >> Please find the following resources for your reference: >>=20 >> - RFC: https://wiki.php.net/rfc/marking_return_value_as_important >> - Implementation: https://github.com/php/php-src/pull/17599 > > Hello everyone, > > it's been two weeks, but given the feedback we received, we don't feel=20 > the discussion didn't reach a conclusive resolution yet. > > So we wanted to solicit additional opinions. In an attempt to summariz= e=20 > the discussion, how we see it, there are two main points of contention=20 > we'd like to discuss further. I'm still undecided on the RFC overall, but one thing that is problemati= c is the phrasing of the messages. Currently, the messages in the attri= bute are fragments of an English sentence, seemingly designed to fit gra= mmatically with a sentence fragment that is coded into the engine somewh= ere but not readily available to developers. From my phrasing I think you can guess my opinion of that. That is impossible to document cleanly for English speakers. It will no= t translate at all for anyone who is writing in a non-English language (= which people do). People are going to get it wrong more than they get i= t right, in any language. Instead, the wording should be structured to be a complete sentence, and= the built-in message updated to make that logical. That gives the deve= loper much more freedom to write a meaningful, contextually-relevant mes= sage in the language of their choice. --Larry Garfield