Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122447 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 0BFA31ACEBF for ; Wed, 21 Feb 2024 22:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1708555814; bh=T+wm+tB4eK60zRQvqAtJ9Pb6CI6KSnUDJnMwd6esvV8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=g8v0NyRm0G7NmxdaQqKUVwTLpEl9CXfYguSb2/rAyVORE6J3FZMmLu8eEofAExcl3 gYqYYPVo0nyuWUSt8hIJX/ke/7gih27xxh5tf4rMs2lxgq44TYitVrPJnQYDiKn+tq PgK/z1j9ZcU2B5N2hHXVnYLwG+HhY4iKh4c85gPZ7EPMlzpUFai5Hq5vXGM8bS5Gzh Cw1TciTM1wi8IpAaR6uWbL/U+J600Vcx1lyjkWlWcUBx5vwyud7wejXR5EmL2bxq0T Ld9Wj2eIsxqhSqhldq+BUIRvvq7UtoQhEaKGEi67xjLywSLVRN725fLXOnLr7H++s4 KSLK8A/1LBoTw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0F40418004F for ; Wed, 21 Feb 2024 22:50:13 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 smtp-bc08.mail.infomaniak.ch (smtp-bc08.mail.infomaniak.ch [45.157.188.8]) (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, 21 Feb 2024 14:50:12 -0800 (PST) Received: from smtp-4-0000.mail.infomaniak.ch (unknown [10.7.10.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4TgBLQ0lt3zMq3Gv for ; Wed, 21 Feb 2024 23:50:06 +0100 (CET) Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4TgBLP4cSgzM1L for ; Wed, 21 Feb 2024 23:50:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=processus.org; s=20231208; t=1708555806; bh=T+wm+tB4eK60zRQvqAtJ9Pb6CI6KSnUDJnMwd6esvV8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=SyvB/ie0lCwZIaNQDvDQ4wD+BdZstzPp1r0QNxnI2lG51aDI6gO8RFhHSeWHMQB+n 9i97R0e4ghxkVVEHSr11agTIRywkup7tkR+wp/ywAVHIc3VLgddokbyvBQ3UKqwXZF QDJtaGQMU7nqmjNI/XhfBGWMyOhW8c8TGdoTuxFMBF/Bi+2qs2BLMKlrXGZ4F5oA5F DpTpHBTBzhuK809TV0CQhyqmIukEOS37rrwnI1jMNWqY2plxABKBV0HC5MJ0xaKRxS 9I7DbbWWB0AWiHB93XPWBsZ6azocm/L/0Oxw5mfZ1ZGSrRS6zfPw0TLIV3GJHKBCS8 dQdLqpMjb9wFg== Message-ID: Date: Wed, 21 Feb 2024 23:50:04 +0100 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[ Property accessor hooks, take 2 Content-Language: fr-FR, en-US To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha From: pierre-php@processus.org (Pierre) Le 21/02/2024 à 19:55, Larry Garfield a écrit : > Hello again, fine Internalians. > > After much on-again/off-again work, Ilija and I are back with a more polished property access hooks/interface properties RFC. It’s 99% unchanged from last summer; the PR is now essentially complete and more robust, and we were able to squish the last remaining edge cases. > > Baring any major changes, we plan to bring this to a vote in mid-March. > > https://wiki.php.net/rfc/property-hooks > > It’s long, but that’s because we’re handling every edge case we could think of. Properties involve dealing with both references and inheritance, both of which have complex implications. We believe we’ve identified the most logical handling for all cases, though. > > Note the FAQ question at the end, which explains some design choices. > > There’s one outstanding question, which is slightly painful to ask: Originally, this RFC was called “property accessors,” which is the terminology used by most languages. During early development, when we had 4 accessors like Swift, we changed the name to “hooks” to better indicate that one was “hooking into” the property lifecycle. However, later refinement brought it back down to 2 operations, get and set. That makes the “hooks” name less applicable, and inconsistent with what other languages call it. > > However, changing it back at this point would be a non-small amount of grunt work. There would be no functional changes from doing so, but it’s lots of renaming things both in the PR and the RFC. We are willing to do so if the consensus is that it would be beneficial, but want to ask before putting in the effort. > Yes please ! Pass ! I don't have voting rights, but we need this. Cheers, Pierre R.