Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123087 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 0B30C1A009C for ; Wed, 10 Apr 2024 10:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712744751; bh=d16grfvDOzVPb9SdHzg1b6IaMV/PW+r1j4AibYUTW/w=; h=Date:Subject:To:References:From:Cc:In-Reply-To:From; b=hiVuqCPVN1nJT0nJGaYlAeeReCsL56c8qiQwOmybGSpVKWhPK4aq/VsPniQU7MLQg jbLGW774DRPE/nMWXYNF2LWB/QJNGGmEoa/FcSXpzGdn+cK46nrQM7g8dHYna9N+bD XCPVb2oXjAnuGyxoylx0MFImOvjxML+pFv2dWTlZzD4cmMY33OEKYErPqAkRCnh8AQ J+Gkw2LQ7D8BFzZ3sNNmIBpCQBB0onb7z/zH8EwIVwcrW6BVI7SJC43/G77KcL87Pw 9K84aJlT17EhVc+QkPdY+d/8pqRCyM+lRsrJBq8PaSYX3iwjgTQXnYpxGhwiojbKhV A0HyK6wImdDHA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5D6B5180877 for ; Wed, 10 Apr 2024 10:25:50 +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_PASS,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh3-smtp.messagingengine.com (fhigh3-smtp.messagingengine.com [103.168.172.154]) (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, 10 Apr 2024 10:25:49 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id CE3A111400FB; Wed, 10 Apr 2024 06:25:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 10 Apr 2024 06:25:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beccati.com; h= cc: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=1712744716; x=1712831116; bh=1jWvV0lqt5LRn4Uu1qwE3v+R8aQmgLqffWU3EQFGE3M=; b= iDuOqVPXPyUlvKS/RjqUeL7NPx4US6vHJXT3iMdONRITfEdDfcZ3Ip4qnpP4L8TD 9QsD76paWAdFAiXNr0jDqphcYHyZZIxUuQ2UJOdyAkZLDAP2ZLAA6Izz1nX+kQLD v6nigZJjm/ug7Kh2TmTmQElZ0GrcQ5v8v032+O1Em8F4fpFTbLTy2e5HHFPNXNa1 MhAd2MvVqKyhdeCP/Ehv40wJe4YxdHjCzSMNZkwZCNmJ20NuuIW6krE7IGPZ5haP JPYClwL3Umfj0uHjaJqotHKjXA5SyApC/c+aAQeT1YoqdZNsrPGKqQoJ1WAL0RDo zem1dT7jCql27AnxwyBNHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm2; t=1712744716; x= 1712831116; bh=1jWvV0lqt5LRn4Uu1qwE3v+R8aQmgLqffWU3EQFGE3M=; b=I eCLHo/FX8tSmPVA+azMdAj2PAoE390lOgw09F6BrYh080GCD4NGc4IcW6ymdcYia Re9jfag9KZItpfu24t0/yIupEukJyH4yBIAc89FhW6sftSb4yOQqKMkZfMqUm0VX mI5mV2a4oLC0MXKxdbAfujy0BNxvjLi7A5+dMXi1j6lYGkxCTM/sCPv5EiF8BF2E OKsc878iamo8C9dKaS0DF/XrA2clBi/+5ol84KLpUX7Es734xxFwMpNpx+nxSw5S u4KeS9wwqsGRYW4yufwE/IMwKMrQVetCPjcMkDyZl33/Moqoi79fpTXvCmimZtC1 ZVr4LFcfi/P9E8dR9anag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudehiedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfevjggtgfesth ejredttddvjeenucfhrhhomhepofgrthhtvghouceuvggttggrthhiuceophhhphessggv tggtrghtihdrtghomheqnecuggftrfgrthhtvghrnhepheelhfeivedtgeehudetleehle eutefghfejheeklefhvdehveetffdtteehfedvnecuffhomhgrihhnpegsvggttggrthhi rdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epphhhphessggvtggtrghtihdrtghomh X-ME-Proxy: Feedback-ID: i6f4c46c2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 Apr 2024 06:25:15 -0400 (EDT) Message-ID: Date: Wed, 10 Apr 2024 12:25:12 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC][Vote announcement] Property hooks To: internals@lists.php.net References: <66154AA0.1040905@adviesenzo.nl> <66160A1D.4060409@adviesenzo.nl> Content-Language: it, en-GB Cc: Juliette Reinders Folmer In-Reply-To: <66160A1D.4060409@adviesenzo.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: php@beccati.com (Matteo Beccati) Hi, Il 10/04/2024 05:40, Juliette Reinders Folmer ha scritto: > --- > TL;DR: this RFC tries to do too much in one go and introduces a huge > amount of cognitive complexity with all the exceptions and the > differences in behaviour between virtual and backed properties. This > cognitive complexity is so high that I expect that the feature will > catch most developers out a lot of the time. > --- Thanks Juliette for the excellent write-up (I quoted the TL;DR just for brevity). At first what the RFC promises looks incredibly shiny and got me very excited. The work done by Larry and Ilija is certainly brilliant, but the complexity is so big that I feel we should aim for a trimmed down version to make it easier to grasp and to work with, e.g. less syntax variants (no short or constructor promotion), and perhaps no virtual properties. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/