Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119015 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37583 invoked from network); 15 Nov 2022 23:06:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Nov 2022 23:06:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 072D0180044 for ; Tue, 15 Nov 2022 15:06:36 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,MISSING_HEADERS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 15 Nov 2022 15:06:35 -0800 (PST) Received: by mail-wm1-f47.google.com with SMTP id v7so10714544wmn.0 for ; Tue, 15 Nov 2022 15:06:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:from:date:from:to:cc:subject:date :message-id:reply-to; bh=szcD3/U8lIEbLdHdG2+xd7yj+PbCWv4fugStaxhEnuY=; b=HPc20BJe78eJcINYMhwRDlFi7XrPKz26kITTNnGAhJCumhV9YRNWFhIK5vcoEU6MXx K9ZQzmtQNhbTHZ98z7lR86hwBIs0IsTXM9wyslGFb1vkInwZ7IIqJ6mygXWGwmWoofkC cuWVRRyxYXpC43eymVaJyeXyIlvsBdkZfN5NQO+9xSHLp5ZstTwWKxlU9vGeS3+d7eOZ F1ZdN9WaKJ6QRlcyYzwuLVQjAyX1p6+/btTHIuXbDJDQvMCrOW4GpZjCwzcnTRKx8Wof YWhSvfn3e2NHJ9/EJIPcYzGWhj7dzBviOef9ftCUm+BV5iTZSb/y9foOQcelmz001g73 U2gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=szcD3/U8lIEbLdHdG2+xd7yj+PbCWv4fugStaxhEnuY=; b=sNYp+tpRH2YqvOIlCCJSDpiq1fcWCMYGsbGu4GL0PRJYFYVR6cRQjShrn8Y/clz6gb 8C/H0uBgzyi4EE2VhzO1aDKf+kRKVkygqkiPqWSWDqAr9k2GWaqBbxRUzuW0pTTLdVZR 1xtqjDt9lpTO4F3zxisblD1jhubrT5qHWvpCeIKETbrvgZrnz5JFLaPl35x7E9ikgTni GycU3qEgzSIjEYAEgxQ6riwJDMTVXoXA1tq3bTxFoTonIc87eQ78kgcPcYg8OYDi6kyr yBl8JrS1ifvhLL846oFuVRJ3iBgQnHQ/qQDRh0n+fliiSNQ0/z+lChME/39LgHsxAEka T6UQ== X-Gm-Message-State: ANoB5pmA5qIqH2vSSTkzwoQa4Ab/mQwCwicLThlPiZixIlAyA/XHqF+E ueg0dfqKXhGd7UVyFVxgP5F4EnyyAoQ= X-Google-Smtp-Source: AA0mqf6/6CYET4DJ1k/gji9mlCPfGxsR/w6bjBLxzcIggfO52v2FqHWb4YGKzB9IYTGXsXTXtBaJEQ== X-Received: by 2002:a05:600c:3848:b0:3cf:a511:3217 with SMTP id s8-20020a05600c384800b003cfa5113217mr244722wmr.205.1668553594197; Tue, 15 Nov 2022 15:06:34 -0800 (PST) Received: from [127.0.0.1] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.gmail.com with ESMTPSA id p3-20020a05600c358300b003c6b9749505sm159701wmq.30.2022.11.15.15.06.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Nov 2022 15:06:33 -0800 (PST) Date: Tue, 15 Nov 2022 23:06:30 +0000 CC: internals@lists.php.net User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] [Discussion] Readonly class amendments From: rowan.collins@gmail.com (Rowan Tommins) On 15 November 2022 19:23:44 GMT, "M=C3=A1t=C3=A9 Kocsis" wrote: >I didn't bother to add a separate example for explicit readonly propertie= s, >because I mainly regard >readonly classes as a shorthand for adding the readonly modifier for all >properties My two cents: examples are cheap, misunderstandings are expensive=2E What = you have now is like a test suite that only tests the happy path - the exam= ple doesn't demonstrate any of the details of the RFC=2E It would be really= helpful to have an example, or a commented line of code in a bigger exampl= e, for each of the things this RFC will let you do, and some that it *won't= * let you do, even for things that seem obvious to you, because they might = not be obvious to everyone=2E Regards, --=20 Rowan Tommins [IMSoP]