Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119060 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31562 invoked from network); 30 Nov 2022 14:57:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Nov 2022 14:57:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CA78C180087 for ; Wed, 30 Nov 2022 06:57:23 -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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 ; Wed, 30 Nov 2022 06:57:23 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0979A3200962 for ; Wed, 30 Nov 2022 09:57:19 -0500 (EST) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Wed, 30 Nov 2022 09:57:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm1; t=1669820239; x=1669906639; bh=O0/omEfHwXs4pQ7ILlgJrfnay ZI7v0KXB5d1imTDFB8=; b=azAmWqLnMvV0rwB9fQx9vTXqVmkuoOMYrhQs6xHon 3VNzoMJIVd5M6u9Ymad0DgeaXdZNfTLHnBCb5UOeE46il9bQxrIpQQD8BzeezlTg E7KLgWViRQTPiAfYJCxPNPbrbQQvHdaa650BVPO7faLsZlErWstBuW0GRTBPy2MS 950UbnH8jW37L11tHOP3RP2xJNd2JiopGwc3vb6H6KYy57kU5WkWoho0jiCKodc7 l5JOIueBNwghSMEACSCTQgTtxIUxbBGvHsq1uEZU2GCmbJRmtnu7BZiCgJWIXq6J ph8CUoqYv4rdzNO3PUhgDluRKZboDehjFR+RkHCVC+Y8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1669820239; x=1669906639; bh=O 0/omEfHwXs4pQ7ILlgJrfnayZI7v0KXB5d1imTDFB8=; b=jthauzp4btn2VbZ9c yhMlx9ixm2vKNqCWtFX+Gm7iJ7LJw11JfPtaKZbjVdrW8vfV9QGd/3ZMlfbq2hFv +AO5uJuh45/i7JMDnLBbFj2um4GEUewCXIbxAvGZC1MDq6Keys6d2Fyn5kuMMKOV uBa3CQLoMDEuACScKjQR7DlQo29KFn58vjHtfMhmLD9GZxaiX51Cqu19sPV0ZG1z TD2/o93KRgdbLs7O2b37KAMr8AnelRSun2GBNLmC3eurzYCLrRwoXG7hyMdoZGq3 chg9FwxvPFsRUN7d46cSIlRkr0iPv1CA3s6WsiDAjOYA/m7MfctNXJILX15N6ulr u0nMQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrtdefgdeilecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeeggeehgfetjeehgefggefhleeugefgtdejieevvdet hfevgeeuudefleehvdetieenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhi vghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2020D1700089; Wed, 30 Nov 2022 09:57:19 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-ID: <0a7572f0-5b26-4a01-921e-cb5856b0d226@app.fastmail.com> In-Reply-To: <76017DB6-5DC3-47C7-9C50-5BB42E070280@gmail.com> References: <0854b030-c51c-4c1b-a7dd-22835a1e5da9@app.fastmail.com> <831b9906-dc0c-420c-b22f-8a0cc8a1ad64@app.fastmail.com> <434BDABD-8551-46C8-98EC-8CA87952AE25@gmail.com> <76017DB6-5DC3-47C7-9C50-5BB42E070280@gmail.com> Date: Wed, 30 Nov 2022 08:56:56 -0600 To: "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Asymmetric Visibility, with readonly From: larry@garfieldtech.com ("Larry Garfield") On Wed, Nov 30, 2022, at 4:02 AM, Claude Pache wrote: >> Le 30 nov. 2022 =C3=A0 02:27, Larry Garfield = a =C3=A9crit : >>=20 >> On Tue, Nov 29, 2022, at 5:46 PM, Claude Pache wrote: >>=20 >>> In the RFC, section Permitted visibility=20 >>> (https://wiki.php.net/rfc/asymmetric-visibility#permitted_visibility=20 >>> ): >>>> The set visibility, if it differs from the main (get) visibility, M= UST be strictly lesser than the main visibility. That is, the set visibi= lity may only be protected or private. If the main visibility is protect= ed, set visibility may only be private. Any violation of this rule will = result in a compile time error. >>>>=20 >>> The first sentence does not forbid `public public(set)`, or `protect= ed=20 >>> protected(set)`, etc. (the `set` visibility does not differ from the=20 >>> main visibility), but the rest of the paragraph does not allow it. T= hat=20 >>> should be clarified. >>=20 >> Er. That's exactly what it says: "strictly lesser" than the main vis= ibility. The lines after are just restating it. "public public(set)" i= s not allowed. > > As I understand the first sentence (what it says, not what you meant): > > =E2=80=9CThe set visibility, **if it differs from the main (get) visib= ility**,=20 > {$some_restriction}.=E2=80=9D > > In `public public(set)`, the set visibility does not differ from the=20 > main/get visibility, therefore {$some_restriction} does not apply. > > My guess is that you wanted to say: > > =E2=80=9CThe set visibility, **if specified explicitly**, {$some_restr= iction}.=E2=80=9D Ahhh... I see what you're getting at. Fair point, I'll adjust it. Than= ks. --Larry Garfield