Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126349 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 8C7B61A00BC for ; Sat, 8 Feb 2025 11:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1739014744; bh=t9+eEEp4dio0a6MK/tW+EQ1UwddYj390PPhX5Wz+lss=; h=Date:Subject:To:References:From:In-Reply-To:From; b=kNKsPMwsK6SMnG+EE3QkzejhhtyVNa1ea0Rmi1hgrkwG3jVFfZkaF12xDZXCCqO0J Avgl4mB/H/t447bsGkixCl4i7JC6/VS+tNjz/Rj+w+Iz8u2b8HLA/tihUyFDI6CHhD eyKS4vFDcyp0GL3pPwW8zgFDKXENCzhB/Jlrlk3DxFTeodaRNee+e4SyqgMZhGGQuY CP4B90zNd2EMm/KwkX0h27iyY6zZThDDGCQWxyiWu8iS/sn5gwDaPohiI1rK5/AV0N assc7qWtX/vWgexqEKOm79Yzk40b4i0dbp/D4fV9GKDqVbZyIQkDUKEmR9XQnNsnrG 75fIpYXaz3xXA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 29171180087 for ; Sat, 8 Feb 2025 11:39:04 +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.2 required=5.0 tests=BAYES_40,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 ; Sat, 8 Feb 2025 11:39:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1739014906; bh=JFhVs8KKlpM5tNLiZfKGcJIqXBdPi0ZvGLZPUcAnGjA=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=TPXUsiKwOTlP07ZGCQgRiU/eWRn64QBtyDOeAb0jmIM35xNPvvZpLOG5UhlIxMvaq F/gkSxPCzrtBtlAAEK8kUW6XoVIZ3sQAEe0fT2E1HAwmImAR1j6rYJt3/pMmOKxVpF LyzZQbw6QHRLja0iL6ripqyqrjTkKyt2POxjLBczxjUqp7l5FwZ+XLJbSU/Jj4g9gd zmhfhdvqOSSHezgMImZRKSZNdp15q52MJ7lokUgeOHjg4yI9JSGlOBMJaeONqqnAYk 4tvbnlyxbK01CInzfyl0yg55wj61edZtMOcC23nsoY8Qs87tV0DqDe/ZfvBQSsAEy0 DihfWrj1s/T0Q== Message-ID: Date: Sat, 8 Feb 2025 12:41:43 +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: php internals References: <5a584219f120385e7e30f6d0a46cc108@bastelstu.be> <040da4e2-2595-42ad-ab94-a0e87aed1a79@app.fastmail.com> <7b2424df-950c-4589-bcfa-d96448e3a204@gmx.de> <03a9621a-e407-4068-ab62-3ea5f1b7118e@app.fastmail.com> Content-Language: en-US In-Reply-To: <03a9621a-e407-4068-ab62-3ea5f1b7118e@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/8/25 05:05, Larry Garfield wrote: >> Indeed, precendence and associativity need to be mentioned in the RFC. > > I've added a precedence section, using examples from the tests and this thread. Associativity is not explicitly spelled out (though only left associativity makes sense). And for the ternary conditional, the phrasing is pretty non-technical: > it will likely need to be enclosed in () or else it will be misinterpreted. What does “misinterpreted” mean in concrete terms? In the stated example there is only one possible way to interpret it as a legal PHP program. Does this mean it will syntax error without the parentheses? Explicitly state the error message then. Best regards Tim Düsterhus