Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128889 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 lists.php.net (Postfix) with ESMTPS id 0FE3E1A00BC for ; Tue, 21 Oct 2025 21:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761083872; bh=bmAHRdRqvRlZaOcqe2CSlalkY3b3y1VALz77HTtEKp4=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=LlkkOmCGUzgjSBi33qL7RTabebddwfP+d9e0gtRpDR1hF8HsLSwTQpnXNtO01tj3J S76cxMJXjcqPkJVe5UmgsS9uYFg91pqqfS71XpwjzuCtwsbCoA/+YQkdVi7g/D+ukE 1hbPt955EHa3V3cHqJVGhU5MtXGriCiWRV+OEWzYN455z82RS0twwu/P2czH3dEKIk PzEZkYuM8OVq55nSXjTdiJpauwuTWTGrHTZEdOuPgeg8gwDHZvdIJFxVWIcQycrwHZ eMxm2wAsvGFn1NRMMB9R4Kxqft1hgcfHqBMzM8gaFhvntVqgmHdGWZPItJGa1E+L0k mnNXI2sj9xOMg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3ECB71801EC for ; Tue, 21 Oct 2025 21:57:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_05,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.1 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-a7-smtp.messagingengine.com (fhigh-a7-smtp.messagingengine.com [103.168.172.158]) (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 ; Tue, 21 Oct 2025 21:57:40 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2D2EA14001C0; Tue, 21 Oct 2025 17:57:35 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-05.internal (MEProxy); Tue, 21 Oct 2025 17:57:35 -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=fm3; t=1761083855; x= 1761170255; bh=bmAHRdRqvRlZaOcqe2CSlalkY3b3y1VALz77HTtEKp4=; b=A o0wqBTBougHUoxH8BEMyrTG0GwJH1lAFMZRULoUuOwt+Sf0n9dOkx3nHoBeBJSVn widDSvUWGOn1rlag0ha3c5onpFgd3oEqJ5qHLLrX3DVBeA5SOoDjqf9KlgBOd9Cf uVVEQyYQYXpAueZGYrKsWafpBVvBn74PIADuC3zK8XWfMuq1cuZUdlqYEHA1ZMIu 1egWzg55vNkXT5KLRzZH3tXhfrXpde2ofichkXETqEkgU76+ys8GHNN7/cLEyboh vTuJtldal9943M6zYmUQVk3PHm1Xm+CclNbfZmXYzO/PvMekTO2sLuqRUMHQo7Sg wWLzqdkAlelleNMhTMzvw== 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-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1761083855; x=1761170255; bh=bmAHRdRqvRlZaOcqe2CSlalkY3b3y1VALz7 7HTtEKp4=; b=kAvgMf5m48a007WQ+80fI5YodJINnuCipiXov/9ZjsSkPiTsXrn LhpNCds2mTBdNtkUB/hFulyAM7V3zXnmV/24b7QlB0kug1p88nNQqjBaEJlscdja BKJm3+388zghcASBVqQaFl+NFrAhvtFyPBxUCdRdHnISSZkh+gJs3UJpGxUblV+W 40S9VPVo10za9LAGT3jfTeoqTucl979surjITK5yl0U5+uiiCNcmKBeCr0xf1EHt dhRvpKpU7nE/FSJlOPW/OJ2dhVY4K6opCI+dmTdEgBr0gMqQ050w9woEVUZrTLbW Ij3cgH4+5hJJcng4T3Q1L0efLNipJvYGNxA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddugedukeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgesrgdtreerredtjeenucfhrhhomhepfdftohgsucfn rghnuggvrhhsfdcuoehrohgssegsohhtthhlvggurdgtohguvghsqeenucggtffrrghtth gvrhhnpeeiueethedvvdefjefhgfeiheelheehtdfhfeekjefflefgvedvkeduteejjedt tdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehroh gssegsohhtthhlvggurdgtohguvghspdhnsggprhgtphhtthhopeefpdhmohguvgepshhm thhpohhuthdprhgtphhtthhopegvughmohhnugdrhhhtsehgmhgrihhlrdgtohhmpdhrtg hpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvthdprhgtphhtthho pegrrghrohhnsehtrhhofihskhhirdgtohhm X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id C5D8D182007A; Tue, 21 Oct 2025 17:57:34 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: AG5VjklPAjNR Date: Tue, 21 Oct 2025 23:57:13 +0200 To: "Edmond Dantes" , "Aaron Piotrowski" Cc: "PHP Internals" Message-ID: <37180d8d-85b4-49a3-a672-334bf4329470@app.fastmail.com> In-Reply-To: References: <0e4e39d6-9cc9-4970-92e0-2463143b4011@app.fastmail.com> Subject: Re: [PHP-DEV] PHP True Async RFC Stage 4 Content-Type: multipart/alternative; boundary=8fd2d510d8484464a7ab6074f2c00712 From: rob@bottled.codes ("Rob Landers") --8fd2d510d8484464a7ab6074f2c00712 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Oct 21, 2025, at 19:11, Edmond Dantes wrote: > Hi >=20 > > Awaitables should always represent a single value. Awaiting multiple= times should never result in a different value. > Where did this rule come from? I don=E2=80=99t think it=E2=80=99s a =E2=80=9Crule=E2=80=9D per se and w= hy I suggested breaking it up into two different kinds of Awaitables. In= variants make code easier to reason about and work with. The more invari= ants you have, the easier it is to form, maintain, and refactor.=20 =E2=80=94 Rob --8fd2d510d8484464a7ab6074f2c00712 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Tue, Oct 21, 2025, at 19:11, Edmond Dantes wrote:
Hi
> Awaitables should always represent a single value. Awai= ting multiple times should never result in a different value.
= Where did this rule come from?

I d= on=E2=80=99t think it=E2=80=99s a =E2=80=9Crule=E2=80=9D per se and why = I suggested breaking it up into two different kinds of Awaitables. Invar= iants make code easier to reason about and work with. The more invariant= s you have, the easier it is to form, maintain, and refactor. 

=E2=80=94 Rob
--8fd2d510d8484464a7ab6074f2c00712--