Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128550 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 6C0B91A00BC for ; Mon, 25 Aug 2025 10:16:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1756116881; bh=L+hI1K75TwIj3CijcuJFMxNl/BmvpPDNEPUp4b4xhew=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ng1o/22igURYyd3jowqrH5qayf+Jesq7/vcIh7oB0nCge5m96cRQgNp450T3ncQWr mzrJWUOzEpw4QgaccN/WZN1vPIHVw5zMdbAPE3KiXDN0/3Sc4NSRTSqde1xWDSQlHN JSwM89CuKJwyYcffrlkY8zMA9ZmLJNOavDNygoiNw99uGFn8aKIr9NxlfRvAD6Esko MuSGnmzLtXzoMu3H+UWbMvdm0/v7TQS3trF8lj5rrzVxCEd7dclpODZHJmOw8axC+o q+KzRg8DZllRcSslfgDHtZXg6gTZ7x7idoZ0tY0zTd1O2yn4fsaPr+9NuY8VIySsZl 42mcn1igKeWuQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A4F70180081 for ; Mon, 25 Aug 2025 10:14:36 +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=-0.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from sonic303-20.consmr.mail.ir2.yahoo.com (sonic303-20.consmr.mail.ir2.yahoo.com [77.238.178.201]) (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 ; Mon, 25 Aug 2025 10:14:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1756116967; bh=L+hI1K75TwIj3CijcuJFMxNl/BmvpPDNEPUp4b4xhew=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=QhcUQ4OFMqcICWiTK3kuAT11ohPaj9iAX+6H0zfqOSLLD2aEPfTAUORKHN4tZ/RBIU0AzR2Z6MUY7hhbG7uoy4P3l48SrYeYQKDZ8u2mYZLTpfYrvoi41j+21gZhzGJ21qdC3nNC2F3eq/CdQOxh858le/dFsQTqS6sSi7K6GSk131jrcUHhe21HFl3RBiWl9ApPJT9zZdKgTOoDZ7LNbZODqKsgShEsj8BixeQodCce0NqfjrfgoEsArD5yGM6d+tHQ/vnJgaxeG0Qp/1fxWUZcYdYkdVqJCG22oMggk5GrcEImLn/Af2En7xE1AhiCkob6drJscGAOD4AaXY1OVA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1756116967; bh=VAPJW5TA8QbQY6X5tD8qI0ERXBvKgw1qTObKtroRMt1=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=XIzvGBR5E72vW9GEwkDoVtd4jRy66O3kHzrNkMqEl4OSu8vK2ICtUCDgXMqAA4Unc+mYFOcNXFqGUlqpmVtwsV2vUej9zpmA4x6ikdJisrmbzPqSsH2R5DldK86ZKsJQFNTjAP1Ey+2gpPrS+HgN/7B3x/VhfymN1pptNAOAxsqnoKnpGEEtfyucdOv++re7gV8GP+MjfQC/H71415OIOwc9Y1WI6WB0JuZEBWnFTIJvEqtYVVP4BYDcHU6qdmLwNCxZRbPiNOgCyDnXN77W79UFdzTSVCH2+h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G1lzCiofrsEDK7QVZgw78NcH1aq4myHw8SKFeUH D35Da4DbMuCS404.FjDAo2ciyb5nGxiEMlkJmy1ECm4q5NNg84PvV1qgUnqZzuwISN7Y..9eU9J7 TftWzAsbQliJGgAOE1OS27L7rkybQN7n4w27mvs.jzx6qL_fI9157glPbVBFtcyiR5YJCFKynpLE SokrutOgHeoNDzEoXhW50tFw_7Md3xK7N8khgmQVnwQ3hLI8zzTIzK1aj X-Sonic-MF: X-Sonic-ID: e1ee1d47-3005-4237-a071-0b5e7b224793 Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ir2.yahoo.com with HTTP; Mon, 25 Aug 2025 10:16:07 +0000 Received: by hermes--production-ir2-858bd4ff7b-mp79t (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3243d7198bbc1f97b6bafc4ba1299773; Mon, 25 Aug 2025 10:16:05 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Message-ID: <1756104287884.3676619450.3757373456@yahoo.de> To: php internals Cc: larry@garfieldtech.com Subject: Re: [PHP-DEV] Pipe precedence challenges Date: Mon, 25 Aug 2025 10:16:04 +0000 In-Reply-To: <08a0d032-b2f9-4bc6-b44d-f5a02b6ab376@app.fastmail.com> References: <08a0d032-b2f9-4bc6-b44d-f5a02b6ab376@app.fastmail.com> X-Mailer: Vivaldi Mail User-Agent: Vivaldi Mail/7.5.3735.64 Content-Transfer-Encoding: quoted-printable Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 From: hanskrentel@yahoo.de (Hans Krentel) On Thursday 21 August 2025 15:53:12 (+02:00), Larry Garfield wrote: > The main problem is not when a pipe is inside a closure, but when a > closure is inside a pipe, which is likely the far more common case. > > ...The annoying extra parens there would also be resolved using PFA > ... (As would using higher-order functions instead...) Thank you for pointing to the PFA RFC. It indeed highlights the very verbosity problem that leads to the current parsing conflict. It's clear that PFA is the ideal, holistic solution to making functions pipe- compatible. Given that PFA is not part of the current release cycle, we are effectively in a transitional state where we have the Pipe operator but not its ideal companion. The mandatory parentheses are a necessary fix for the grammar, but they accentuate the very syntactic noise we aim to reduce. This precedence issue has led me to look back at the history of this feature, and I was fascinated to find Sara Golemon's original 2016 RFC. It's striking that the very first proposal for a pipe operator in PHP included a placeholder syntax ($$) as a core part of the design. This suggests that the challenge of cleanly integrating multi-argument functions into a pipeline was identified from the very beginning. The current situation=E2=80=94where we have the pipe operator but not its = intended companion (PFA)=E2=80=94is an intermediate state that the original design = sought to avoid. My 'canned pipes' suggestion is an attempt to address this same funda- mental need for a placeholder within the current grammatical constraints. It provides a path to recapture that original vision of clean, readable pipelines today, while we work towards the broader solution of general- purpose PFA in the future. It's a proposal I'm happy with whatever the outcome=E2=80=94however it = `yield`s, and whether or not we can capture the return value with or without parentheses. Looking forward to seeing the fix evolve and thanks again for your work on this! Best, hakre