Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126514 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 52DB41A00BC for ; Wed, 26 Feb 2025 19:59:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1740599795; bh=0U7aQXpKvBkZl88LMCzHq5XFvNDFSwi2QrXhnjZWxYo=; h=Date:Subject:To:References:From:In-Reply-To:From; b=I7J/UL6jdqKVR7qrVGvZ/vT2+/paF9SuWNBjBAMEn24QhWrfhALyzZAW2B3FIqVjl 9QJUE7wlwmRXfbkG1x86W+zSV3842DwXM92wCzJx0ZNakKEN6dxOw09t/m7/s+4f3W jebDRyCS6kqJrf3R6sAZlrcp3WkJQrcTkzVf3aNkshPFfZCVe8AgCTuoQ2szjw24yO f830cXpjTA3DViF4825E9XyBCRsDOr5fSfvoihAMrWaAMRNMFCNpFbqvXHlTaXdqlg U2BWwzfHgt3l5OMv3ZlWQkn+NbyK+gz1c3UBQ//rFtsKiEjRW9o3vb5dk+6WKZHPBr qImEyo13vl/fg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D3F2718006C for ; Wed, 26 Feb 2025 19:56:34 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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, 26 Feb 2025 19:56:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1740599951; bh=ESR18W0ZpAhCwUVpqvE5kIOUP7Y3zXbx+FTO7otKPpA=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=OPGoa63asxq3P25JEWj1GBrNsKipwzpXfYKHMaUx9i/XYFMn3nMaR/f/9NBiDjttr aOXZ+N2l9Wy77SNR2HwRP0U2u7/C16DboNMNwCA3yTe1GND3edBsCgEtqNbELDZAHA sdxawjjPwHlpIOkYYQmdH3FcKvyT3x2h+Y96xahNIp0bls+bnKqlQRfa9wYtp4APPS gfXyYaH9xM4lzdBakcW89YiQAdthY11pGjnkkl3ES8RN+znAWDuZo8x/S5aoHqwnb1 pd8vWPG2nYaERuob340ka+zEcynEyRxiueX2willvfG/DgFW9nVs5LkqrxNAZyYll0 aOLUwjVWZ7ynw== Message-ID: <5afd2a10-dc0c-42f5-86da-06f5bf492db6@bastelstu.be> Date: Wed, 26 Feb 2025 20:59:08 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Pipe Operator (again) To: internals@lists.php.net References: <5d8e68bd-a46c-4696-9a19-6daf7323efa0@app.fastmail.com> Content-Language: en-US In-Reply-To: <5d8e68bd-a46c-4696-9a19-6daf7323efa0@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 2/26/25 07:26, Larry Garfield wrote: > I have updated the patch and RFC accordingly. I think you're right, it does make a bit more sense this way. Is this paragraph in the RFC a left-over from before the change? It appears redundant with the paragraph before: > The pipe operator has a deliberately low binding order, so that most surrounding operators will execute first. In particular, arithmetic operations, null coalesce, and ternaries all have higher binding priority, allowing for the RHS to have arbitrarily complex expressions in it that will still evaluate to a callable. For example: > Best regards Tim Düsterhus