Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122445 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 34C6B1ACEBF for ; Wed, 21 Feb 2024 18:56:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1708541785; bh=xKu53pO/ZuyS8blUmhzn+HFHdrnQWziub3eAmt6hqpY=; h=Date:From:To:Subject:From; b=QosVOzRTyngI/HjzD11c5SRaYl2k0mFXzT1DbQUY3wFt2LltzYwIHejVDqJwe4qMw GNRsYDTQEgm5ws+6SrFz5eVbsJJTO+0agvBLfwAcOkg0qk3J52ETvhnWgZtGPRy/2y Ze3m0jjqqN1GsgUWOMYOx7AI4osd/3WA+6+GlsvK1TQlxzN/kieFQodLAc1ZXgkF/W HGDEHEu/UrWjNtUr52QrgfhWZtR3fW2ayWuJ+wSZ/xjBWC6wIQrxxfUigYdnkUkD1D 8SMd7g6sEOQKe/zDCZrMLpfaJze8P6lNAg0cVgpsGUTuQWSe1S2ZDOzyMaF+CSL1Iz P1aXq91NQuOdg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9161F180059 for ; Wed, 21 Feb 2024 18:56:23 +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,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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 10:56:23 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id DE7323200906 for ; Wed, 21 Feb 2024 13:56:16 -0500 (EST) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Wed, 21 Feb 2024 13:56:17 -0500 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:message-id :mime-version:reply-to:subject:subject:to:to; s=fm1; t= 1708541776; x=1708628176; bh=jIh4ViknQrOC0M9QFzblyV6TzPf5fgcKsci jJnlClhY=; b=HQ5XcrrTgCNgurIrlzW/vPqk/NhUu5PbXIg27rKSxTV3Ez9Gs+/ GuZ3TA68kjc8G31fz0nMv+haQPLghsDMiOy0S1UzsK374JFoUXZ5Y3cU7Wmm/CH4 I0d23duJZ6qw/yqg9Ww4qu5tYHsT2jVXdMTAhxtRHIt7bWZzN14MUW7166+J21S8 O6O1Z2SmfYC+7piZmAkhZnSBriT7Nrc/MGeyvvly8krdetWC+dX8ga/Qn+zDJyY9 Ycme4927rIJGCa2xzwrxa3LTm4JUwB2AoCbVrPw/7+qsoMq40Yzoypit97is39hB 2w81yRNxFd8/PULV+YGBUoCMToz/yjXFXEg== 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:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1708541776; x=1708628176; bh=jIh4ViknQrOC0M9QFzblyV6TzPf5 fgcKscijJnlClhY=; b=eXufBoz/fmFgydyuAleWiWej+A6fbG7dal9H7o37Ohjt Hg15EwDnn5RQ1QOpRM16F7yt5qkBMrRW7fMns1CXntwrEO5qqCysprxJ7jrZvJBO SNB6zvzuFBSoxmrFp0ZKCOBrzZRF5TOfcnG/0R9Wx4UrHP3ujuCmn60WihFyAKmX yDMdPm6PFmQVWL/SNA8WNKpZ2YME5uR4x+YLDZrVCCXY0h/aGPsky+bJuskGg0Zo oN6NOOjsZS0hI9A+hiHE3Z5NfiCTGzIVOR5oKZJVSc/PZ/8yCD2WivWHQUhWhBZx shubml0/TyCHH4NmaJLLoAVnZzkVEejZmKYtqD+iOg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvgdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkfffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepgfdvkefggfevheehueffvedthefhtefhudekteeflefg geeftdevvdetjeeugfehnecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgv lhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 079281700096; Wed, 21 Feb 2024 13:56:16 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-153-g7e3bb84806-fm-20240215.007-g7e3bb848 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: Date: Wed, 21 Feb 2024 18:55:49 +0000 To: "php internals" Subject: [PHP-DEV] [RFC[ Property accessor hooks, take 2 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") Hello again, fine Internalians. After much on-again/off-again work, Ilija and I are back with a more pol= ished property access hooks/interface properties RFC. It=E2=80=99s 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=E2=80=99s long, but that=E2=80=99s because we=E2=80=99re handling eve= ry edge case we could think of. Properties involve dealing with both re= ferences and inheritance, both of which have complex implications. We b= elieve we=E2=80=99ve identified the most logical handling for all cases,= though. Note the FAQ question at the end, which explains some design choices. There=E2=80=99s one outstanding question, which is slightly painful to a= sk: Originally, this RFC was called =E2=80=9Cproperty accessors,=E2=80=9D= which is the terminology used by most languages. During early developm= ent, when we had 4 accessors like Swift, we changed the name to =E2=80=9C= hooks=E2=80=9D to better indicate that one was =E2=80=9Chooking into=E2=80= =9D the property lifecycle. However, later refinement brought it back d= own to 2 operations, get and set. That makes the =E2=80=9Chooks=E2=80=9D= name less applicable, and inconsistent with what other languages call i= t. However, changing it back at this point would be a non-small amount of g= runt work. There would be no functional changes from doing so, but it=E2= =80=99s lots of renaming things both in the PR and the RFC. We are willi= ng to do so if the consensus is that it would be beneficial, but want to= ask before putting in the effort. --=20 Larry Garfield larry@garfieldtech.com