Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124528 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 307411A00B7 for ; Sun, 21 Jul 2024 09:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721553803; bh=/0L6GzO9xIxQFr1BBeE0DZhdjuB6cRubC2Me1pozHHg=; h=In-Reply-To:References:Date:From:To:Subject:From; b=Hs50V1Mbk+uLP0DOonAlMkw/71AKbxUFwsK6yhalIuXVl6SwnDlZ81ithCuM4ISL+ Io6M2pncyncJ1OiNPFZSQ2mGfMbKow7lUDExcEgbzyqDX5uPR2wYjJ2K+k3Ra6n355 b6azcJtdwgr5nZoIqB6CZNTz08ftDS0ON8jiz/p2OFCwle54RJSOyadRK/YwNNa1jL CShkgz59VwDN1Dm2F1ciHPl2cRUFiuF+DbEr9REImsWytQD42fGWuh1MbIeoV0Ww+m g7kbKIhG++7x1suO1f5qidh7WaGxaoNQKQTiTIA5ZOSvtMGKuc359pkT3PzEtQCENO BqyvSeeW42twA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4EB6E18003E for ; Sun, 21 Jul 2024 09:23:22 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout8-smtp.messagingengine.com (fout8-smtp.messagingengine.com [103.168.172.151]) (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 ; Sun, 21 Jul 2024 09:23:21 +0000 (UTC) Received: from compute9.internal (compute9.nyi.internal [10.202.2.228]) by mailfout.nyi.internal (Postfix) with ESMTP id C9790138012C for ; Sun, 21 Jul 2024 05:21:48 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute9.internal (MEProxy); Sun, 21 Jul 2024 05:21:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=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=fm1; t=1721553708; x=1721640108; bh=WmsKrgoYcq vIhBXf6id9gB/uffwA0lQSihF3pGwn7vI=; b=F+/2JqamogupdZ99I2Q1zjFScK HtXHCe85IrkNF2MX0OSwYvWh2KAH7u9G+iZgWsbVE4aIlGP2ZeT3RzMrON25ottn RnDaEfQhJzcRpTjDjGt6Plm/ut6u53D1U5iy0XD817ZfYDlyrge3GPIfbA8IsqP9 Z/aUzzjWV/pYKOg2vXP9RlaTOUfN4tijHJcKQVlWvOiD2S1omVdz7lyKwtZJ4iPo gTZLgZM2jbjon3ujdPA9fapADRVtHGB02P0lVzXhisOzGZSVwiP5ilWqk3ruTIXL Dg8IXNTZ6XcCVYClPL7zIGSHHXLUl5eaCcbhfAncE8inHS4miUHmbvpEljuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1721553708; x=1721640108; bh=WmsKrgoYcqvIhBXf6id9gB/uffwA 0lQSihF3pGwn7vI=; b=pepcAuMXLw2pLQ/EmDp05h4PFg4n6v+0tINcsPBClhhr CooiLSAlQOf1l/zQZ4cSJ29OX9/HVN/YIjxaZZeVnoyctwRLHLb8AQadl2CLzN/H pntrKhgeROloKL7L2wX0RW1Pt/RPrqOXwyDMle39hzi9az4QEufHB8eLS9ew3CCq snPZq8vmn2o2aPr0syDVRM6fV8jNwL8nObqBFYr1ZYaLPKNX3AxcKWmD+eL7PyoX zrpIE8k/OxAeMi/hujTe0VgZ7qxd6SFck3W2818fncSC25IVaYen2ioKXraCxI51 GvltqgjDAXiwRvnCI7KYfu6gXE7G9ntj9D+wMRMmXQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheehgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreerjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhl vggurdgtohguvghsqeenucggtffrrghtthgvrhhnpeeffeduhfduudeikeekudfghfdugf eljefgkeeghfdvieekledvvdejheetgeetgeenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehrohgssegsohhtthhlvggurdgtohguvghs X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 624A315A0092; Sun, 21 Jul 2024 05:21:48 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-568-g843fbadbe-fm-20240701.003-g843fbadb Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Message-ID: <66c4ac1c-b3d7-4b20-b986-1fe1a464f485@app.fastmail.com> In-Reply-To: References: <0a6a61cd-f203-4dea-a7f8-97e6b885c52d@app.fastmail.com> Date: Sun, 21 Jul 2024 11:21:24 +0200 To: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Asymmetric Visibility, v2 Content-Type: multipart/alternative; boundary=a884214e4e5443dea42fbcb96580507f From: rob@bottled.codes ("Rob Landers") --a884214e4e5443dea42fbcb96580507f Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, Jul 20, 2024, at 23:51, Larry Garfield wrote: > On Sat, Jul 20, 2024, at 7:22 AM, Rodrigo Vieira wrote: > > Will the alternative syntax on hook not even be put to a vote? >=20 > It was, a year and a half ago when Aviz was first proposed. The prefe= rence was split, but leaned toward the prefix-style syntax. So we went = with that. I don't think we'll ever get everyone to want the same synta= x, but we're using the one that was both somewhat more popular, and (as = discussed in the RFC) arguably superior. >=20 > As the "comments in yield from" thread has shown, *any* even slight ch= ange to PHP's syntax will require work from static analysis tools. That= 's the nature of the problem space, regardless of the syntax specifics. >=20 > --Larry Garfield >=20 Just to play devil=E2=80=99s advocate, it was also before we had propert= y hooks who advertised itself as a way to =E2=80=9Cwrap and guard access= to object properties=E2=80=9D but we are simply ignoring their existenc= e here. =E2=80=94 Rob --a884214e4e5443dea42fbcb96580507f Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable

=
On Sat, Jul 20, 2024, at 23:51, Larry Garfield wrote:
=
On Sat, Jul 20= , 2024, at 7:22 AM, Rodrigo Vieira wrote:
> Will the al= ternative syntax on hook not even be put to a vote?

It was, a year and a half ago when Aviz was first proposed.&nbs= p; The preference was split, but leaned toward the prefix-style syntax.&= nbsp; So we went with that.  I don't think we'll ever get everyone = to want the same syntax, but we're using the one that was both somewhat = more popular, and (as discussed in the RFC) arguably superior.
=

As the "comments in yield from" thread has shown, *a= ny* even slight change to PHP's syntax will require work from static ana= lysis tools.  That's the nature of the problem space, regardless of= the syntax specifics.

--Larry Garfield
=


Just to play devil= =E2=80=99s advocate, it was also before we had property hooks who advert= ised itself as a way to =E2=80=9Cwrap and guard access to object propert= ies=E2=80=9D but we are simply ignoring their existence here.
<= div>
=E2=80=94 Rob
--a884214e4e5443dea42fbcb96580507f--