Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126347 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 A613F1A00BC for ; Sat, 8 Feb 2025 04:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738987392; bh=MSEp+XUXA2pJfnjpcA94PuNu0A0ET3UNDSW8EzHIcIg=; h=Date:From:To:In-Reply-To:References:Subject:From; b=gJRgtevD1c2ShgJEW7dfSxdjSI8ZdAE0F8AD7yppjWCURZGBF4Q2zOGbjf2seqKZ9 YiZXkMGrY7zE3dKPJ1OGmNR0lUMH5BVC14wdH8GrQ4iNZA98L5cAj3xRsxsD6J+oE2 3WhzJ/SeDdRd4cCr8YIgPLiALA9ORKle1H9XXUz0x8rQPbGnN4vrG20cBbxHxufY6b D+L0Wp9V5wLVsIoEBjlNFx27PygzP+/8O8mHUutuxggTOXX4X2VFY8RvfbFYl3zwNo 3pd1gZTjLswA+TwJI0cMM+APubi9UcBAnfCzduE4c5CIsdZs2HAtxloQLpeF4bbexV dVhVXr9hQMAdg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D3B1918004A for ; Sat, 8 Feb 2025 04:03:11 +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=-2.8 required=5.0 tests=BAYES_00,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-b4-smtp.messagingengine.com (fout-b4-smtp.messagingengine.com [202.12.124.147]) (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, 8 Feb 2025 04:03:11 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 6DDE51140092 for ; Fri, 7 Feb 2025 23:05:55 -0500 (EST) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-01.internal (MEProxy); Fri, 07 Feb 2025 23:05:55 -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=1738987555; x=1739073955; bh=Pu98Oj5fPghJX9ger5Epw cITpqPDwXR70oSWRajAiGI=; b=q1hvWvYHzdb7+MuG0BFYarMyRfz73MVdinOfb EYVRX75Ofm5Drvrhs4cFOuQy48ijD1/ayKhvmX24chsiDm9me7so3+TubpHhOZ7t seso3MqCYJrwCd1O0B2l54BxLRUb6EvKDs/KFS8KWp2w0sBeK6Fqy8oSk64xHb2M by+shzJ8yElabUJUxfY8TRYhglOk7LBAOvhQvWh+stYLNzyAswszfjlKF/VjkEIQ w2VSJhhbyEFpZsVi7r3YQOoVfVCC1Xy87AVTvggFG/deEwqW9CqIqRCvapOUx3fQ ij+JfU2OZjmMCr/9OqC2hjtO8itmEZt4FgDbO7VjazoLK/kww== 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=1738987555; x=1739073955; bh=P u98Oj5fPghJX9ger5EpwcITpqPDwXR70oSWRajAiGI=; b=IPBw/3XTxVsw0HHuM UY3JJhqhaG03hatMtchTPH1v2VkqZoRrHayCvEf4GaIh4RmgFfMZsHWyFX5YucJt EpMhLdMWkXgMmIA4x5QSAdxLG6yWwMSEvjw1rfZ2quOCzpXXUz7aCDKEpXuXoeAa WSpLkFvTj6d+8AvoRqfdiRXqy4X3Ut+UmHFsneyiGk7nhv7TwHVmBeHn1g9nN9uo hm0bZanNkovcGBU+MqDpYHJt6AbeF2x8Zkr5dNe6ITl5XPtoK+AhKbkfwbQHr/tu y0a7+UMXgJudn+IqEoNmnmByJW3qHkX/b8ovDtrhEg4um8ZfQbfwQfLp3vbXCa3J SlAgw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdefuddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvkfgjfhfutgfgsehtqhertdertdej necuhfhrohhmpedfnfgrrhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfh hivghlughtvggthhdrtghomheqnecuggftrfgrthhtvghrnhepheejfeevgfefudetffff vdehiedukeeifeelvedvudeigfekhedvveehffdvgeetnecuffhomhgrihhnpehgihhthh husgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomhdpnhgspghrtghpthhtoh epuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhi shhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id EB82229C006F; Fri, 7 Feb 2025 23:05:54 -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: Fri, 07 Feb 2025 22:05:34 -0600 To: "php internals" Message-ID: <03a9621a-e407-4068-ab62-3ea5f1b7118e@app.fastmail.com> In-Reply-To: <7b2424df-950c-4589-bcfa-d96448e3a204@gmx.de> References: <5a584219f120385e7e30f6d0a46cc108@bastelstu.be> <040da4e2-2595-42ad-ab94-a0e87aed1a79@app.fastmail.com> <7b2424df-950c-4589-bcfa-d96448e3a204@gmx.de> Subject: Re: [PHP-DEV] [RFC] Pipe Operator (again) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Fri, Feb 7, 2025, at 5:47 PM, Christoph M. Becker wrote: > On 07.02.2025 at 23:54, Rob Landers wrote: > >> Put another way, what is the order of operations for this new operato= r? >> >> For example, what is the output of >> >> $x ? $y |> strlen(=E2=80=A6) : $z >> >> $x + $y |> sqrt(=E2=80=A6) . EOL >> >> Etc. > > According to the reference implementation[1], that would be equivalent= to > > $x ? ($y |> strlen(=E2=80=A6)) : $z > > ($x + $y) |> (sqrt(=E2=80=A6) . EOL) > >> I noticed this seems to be missing from the RFC. As a new operator, I= think it should be important to specify that. > > Indeed, precendence and associativity need to be mentioned in the RFC. > > [1] > > Christoph I've added a precedence section, using examples from the tests and this = thread. --Larry Garfield