Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122608 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 3A7871AD8F6 for ; Mon, 11 Mar 2024 08:35:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1710146141; bh=UA/onHwnOnFPOlqiUoHWIOHK1ScKKjXH7uISpWGPc6I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SWNIxhQ0nrpBs9n81TMBXpjJyLjBdoIq+ngUr/cS6if9cnOJGNZin2jEQELvTyNOD ug5hynyssoFya8of5Ek+u8Gjfg47p0yOv+ON2lEE6Pgj7XN8Knxe4+3U4cAMtXQLn/ SwSBRAJssXPcApJt7+W/nicDSnU9w8Hh4Et+vqP60fk84lmFSStRMY9oI/gyhrLsZ0 IfWDcQCzSJAvAoDfm0DQNqNuieBSHBUHIS4VHIcoZld/pVffIPNSCg6fFuVRyoxgMx 2xNPkTN/Ub9WWZKgOaLd0Oszmnr/Dtu7zjMCJHfqzjDevaw6xJ8CTCUra/3E7WIe5x tmn1p/sIvvAUg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8F967180068 for ; Mon, 11 Mar 2024 08:35:40 +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_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (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, 11 Mar 2024 08:35:37 +0000 (UTC) Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-dc74435c428so3876840276.2 for ; Mon, 11 Mar 2024 01:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710146120; x=1710750920; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bJt66djb+OFoO8S1VGGB0dLS7pp4EZD99Sz52ewK6so=; b=K1kZrnWw862L2Jpr+VaxByTK/cowEHog66u0EHezQv3wdFT7VBXg2yuccddjiIwtq3 XIuVpjkOHmmbj4h4SzPgypIh8UkKEBD0p8TmeCAAXGAt5UPgtGrdU2R0eRwJ1ebXXfcg qSqZNeHxDq3Ho3RaNtcUIP6Qw8JvIoSdlcLtLlOLvg/5LzdRZKAOuGqfnFQwiRsEu7ZE HbMt5HYR3wT0RKFW524kZ7qZbf34HL3pAv1o6iftUI+jWaoV1lNZQkCh0kWlem0X8o4p Bk+us6VARR/mRm4Xod7WgLYq9nMOTYDwX0QK8AnSSDQcs+0N+af1+FfEjyErezHo1Xci 09Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710146120; x=1710750920; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bJt66djb+OFoO8S1VGGB0dLS7pp4EZD99Sz52ewK6so=; b=TwbCvZ+8aGUUAKb89Rsvb0xELMwm8aNQvWZqMPxawwT8AKmYjRNnSaishKdwWitWDH +y3EZzbt1dKvuYcf77QYnp0FSzhLwWEkhbykbUlWGjaVyq6mrsdhL+SASP+u228hF3VX HXC5j1LzVwsWEFs9OvPn/aFkBG765EiBgq5VoA6u0lVa6CyXH/q2pwabOrlec7KmqzKf mBgPZjDz7SmBBSP7es7C8raoLclnj4dzY/PYsT6rqsA8NZDFjLj5fEqQAMkLfaRSd01Y 7wCiQpk6ONgDnhiYyBAFCDT3+BaHLMWZ+dGDolTVMHSuaV+5SmRxZpF6nvi65dIrJ7PR JsVQ== X-Gm-Message-State: AOJu0YymAK1RXVbgZQ18k1W+QYvX9sc8IwhktlzH0M+g4vRXXAru2oYZ SDDwpgHDoq03sTKRWFiA4ab0ZrLM7/6lBWmvgajqeSrNVnS/hYARFopEJ0+E03ouz3tbtp4ztpG o2OGKYNpBq96kZh5IW7LW/w0pYm2UGxeiaQYyFA== X-Google-Smtp-Source: AGHT+IHigr0GAKnxg2nCNmhsLKNzb1kex/92umMzJcIiNjLPtjilrFvyGRuvzkb+bhVcMWBQw4+Rxkz1CwOprQBwEro= X-Received: by 2002:a25:ad44:0:b0:dc2:5553:ca12 with SMTP id l4-20020a25ad44000000b00dc25553ca12mr3293815ybe.14.1710146120455; Mon, 11 Mar 2024 01:35:20 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 11 Mar 2024 09:35:09 +0100 Message-ID: Subject: Re: [PHP-DEV] [RFC[ Property accessor hooks, take 2 To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="000000000000061fed06135e6cd9" From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?=) --000000000000061fed06135e6cd9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Larry, pt., 8 mar 2024 o 16:55 Larry Garfield napisa=C5= =82(a): > Hi folks. Based on earlier discussions, we've made a number of changes t= o > the RFC that should address some of the concerns people raised. We also > had some very fruitful discussions off-list with several developers from > the Foundation, which led to what we feel are some solid improvements. > > https://wiki.php.net/rfc/property-hooks > > This RFC looks awesome, thanks Larry and Ilija I love the functionality in its current shape. Thank you everyone for the feedback so far, and if you still have some, > please say so. (Even if it's just to say that you're happy with the RFC > now so we feel more comfortable bringing it to a vote.) > The only thing I don't like and can still be worked on is the reflection mechanism changes. The proposed methods isVirtual and getRawValue, setRawValue pair introduces a need to catch exceptions which could be eliminated by subtyping ReflectionProperty. Having these methods on a separate subtype allows returning a valid value. I realize this isn't trivial because for the last 2 days, I was thinking about giving it a name and TBH cannot figure out anything feasible. If this is not possible to put in understandable words then at least mention it in FAQ and why not. Cheers, Micha=C5=82 Marcin Brzuchalski --000000000000061fed06135e6cd9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Larry,

pt., 8 mar 2024 o 16:55=C2=A0Lar= ry Garfield <larry@garfieldtech.com> napisa=C5=82(a):
Hi folks.=C2=A0 Based on earlier discussio= ns, we've made a number of changes to the RFC that should address some = of the concerns people raised.=C2=A0 We also had some very fruitful discuss= ions off-list with several developers from the Foundation, which led to wha= t we feel are some solid improvements.

https://wiki.php.net/rfc/property-hooks


This RFC looks awesome, thanks Larry a= nd Ilija I love the functionality in its current shape.

Thank you everyone for the feedback so far, and if you still have some, ple= ase say so.=C2=A0 (Even if it's just to say that you're happy with = the RFC now so we feel more comfortable bringing it to a vote.)

The only thing I don't like and can still be w= orked on is the reflection mechanism changes.
The proposed method= s isVirtual and getRawValue, setRawValue pair introduces a need to catch ex= ceptions which could be eliminated by subtyping ReflectionProperty.
Having these methods on a separate subtype allows returning a valid valu= e.
I realize this isn't trivial because for the last 2 days, = I was thinking about giving it a name and TBH cannot figure out anything fe= asible.
If this is not possible to put in understandable words th= en at least mention it in FAQ and why not.

Cheers,=
Micha=C5=82 Marcin Brzuchalski=C2=A0
--000000000000061fed06135e6cd9--