Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124771 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 DEFCF1A00B7 for ; Mon, 5 Aug 2024 15:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722872652; bh=vP6POoudMXr2xX19biILiVhzVJQp9Jn8JF5FeGnPU1o=; h=Date:From:To:In-Reply-To:References:Subject:From; b=a2604W1W7ZFYLaND29ZYICHbd2he5cV0jVhRUdks0UiJYUjKPJ8P6M/4eO3mBhwyL ngdDlVAj2JeyYc9B+sLO47LZuwE3ms8z1MTUdgO6Ck8/Cn0oxeF3GyM1Tv3l+WfnrL 39U790LBRSsWZIThzLeaCpY3MHqqQf3HZbgiAI1Fwcf9DGeMCjlG1WWdYHRRL98aEE 5GpdTJTEh5a1r+E5N6SAqzmrde7hH6P8HBz9TG7sy4yaAosm+tI5dF6qGRZdEgohvf Wv9gMUPpXXPBhf4riEODJkoCTnCMULkDjJ0ZVD4Tg3OnDNr3SseQnjQ/yjCG4g6QGA aHJgk7Q8x+XvQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 23589180054 for ; Mon, 5 Aug 2024 15:44:12 +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,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 fhigh1-smtp.messagingengine.com (fhigh1-smtp.messagingengine.com [103.168.172.152]) (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, 5 Aug 2024 15:44:11 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 5EE311146D9C for ; Mon, 5 Aug 2024 11:42:30 -0400 (EDT) Received: from wimap23 ([10.202.2.83]) by compute3.internal (MEProxy); Mon, 05 Aug 2024 11:42:30 -0400 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=1722872550; x=1722958950; bh=q0szbbokvhr/L++rimjeL Vs1+xDOoKfPqHCZI9DPteU=; b=blFqMIs3rI3aMAJhDpF+IZm2UlOKt+G1DWaWV PV2eXKcwi0sUYndFd0JSU7PRNun1WoRuJxsrMeGIhJ5ozeu655PdgGX8mzLAodAV 90SBtISNi0N5OHeYAU7X6iFZOk9pjBRsw1UhzPnG1/ZSA4aizafdCXFKuuQtb7wR S0iGvwORaZ+aqGNioXbJHZX+RZ//fA3c0yAvjJ14DQ7xnAVhJV5ujFd3mK7gHvLd 8/Oxd4ItrJl2SNM0Z87ifqE5FIZDSNbSH+Jv+JBh079cFd9lmcImvprkxlmTzMqR uR4R4gYtvWnu0ROx3rp/qChsNF0ecRJ44i4ZE00u+49Mdr07w== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1722872550; x= 1722958950; bh=q0szbbokvhr/L++rimjeLVs1+xDOoKfPqHCZI9DPteU=; b=R D8MBDL+7Vg2SOvki4sdr8JU1RTie2XM55om+24XaESVLDGVeSqd7kCfcMFx0zZuT Al3fU6zsNih9jCDuYf5iC/ElnWToj6TIfqorIm1b5TtVency+DUSAi1w4zMjI8vx 1JEhqPmEun/2+3L0EliRmANO9nz2pfdq6heKdl6GvvWBP6AVcqY9QFYIaOGAcim7 AZj0kfjM/fBEDmUJZ0+TuTS+sXbnIfBWxEZP4jPxyLm86CDsKKdAl1A64QhdWgki PjR/AuGWz4Lap4ZKJk9vmIRxvbr3ZzzVOI3xIRUjYaIuBYHOYgTUHoBX6KZ6utd/ VoXzBH09w9U5FUaNxfklw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrkeeigdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefoggffhffvkfgjfhfutgfgsehtqhertdertdejnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepffeiiedvhfdvgedutddtgeetieeugeevhfetheeffeef teduiedthedtgeejueeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmpdhnsggprhgt phhtthhopedt X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1D8882920064; Mon, 5 Aug 2024 11:42:30 -0400 (EDT) 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: Mon, 05 Aug 2024 10:42:09 -0500 To: "php internals" Message-ID: In-Reply-To: References: <0a6a61cd-f203-4dea-a7f8-97e6b885c52d@app.fastmail.com> <66c4ac1c-b3d7-4b20-b986-1fe1a464f485@app.fastmail.com> Subject: Re: [PHP-DEV] [RFC] Asymmetric Visibility, v2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Mon, Aug 5, 2024, at 7:27 AM, Vincent de Lau wrote: > From: Rob Landers =20 > Sent: Sunday, July 21, 2024 11:21 AM > >> 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? > >> > It was, a year and a half ago when Aviz was first proposed.=C2=A0 T= he preference was split, but leaned toward the prefix-style syntax.=C2=A0= So we went with that.=C2=A0 I don't think we'll ever get everyone to wa= nt 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, *any* even slight= change to PHP's syntax will require work from static analysis tools.=C2= =A0 That's the nature of the problem space, regardless of the syntax spe= cifics. > >> Just to play devil=E2=80=99s advocate, it was also before we had prop= erty hooks who advertised itself as a way to =E2=80=9Cwrap and guard acc= ess to object properties=E2=80=9D but we are simply ignoring their exist= ence here. > > I'm very disappointed that this discussion was not concluded before th= e=20 > vote was started. One of the main arguments for picking this syntax is=20 > the research from two years ago, when hooks where not a thing. In my=20 > opinion that makes that whole research obsolete in this new context.=20 > I've asked to redo the research, but that was not acknowledged > > For the 'split visibility' concern, there has been some mentioning of=20 > reviving the `var` keyword, allowing you to place all visibility in th= e=20 > hook block. > > While I don't have the 'perfect' syntax in mind, I strongly believe=20 > that this subject required a bit more investigation and discussion. My=20 > only hope now is that the people voting take this into consideration,=20 > especially as this is now being rushed into 8.4. While hooks were not a feature when Aviz was first proposed, it was very= clear at the time that they were coming, and the syntax was mostly alre= ady figured out, at least in broad strokes. It's not like no one knew w= e'd be having {} after the property if hooks pass. I would not call the= results obsolete. Rather, I think what it shows is that there's no syn= tax that will satisfy everyone, so trying to find a syntax favored by ev= eryone would just waste time and end in failure anyway. I would hardly call this rushed; it was open for multiple months, and bu= ilt on the previous discussion in 2023. Lazy Objects, for instance, was= first proposed a month after aviz, and started its vote on the same day= . (No shade on Lazy Objects; I'm happy to see that passing.) --Larry Garfield