Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119059 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10731 invoked from network); 30 Nov 2022 10:02:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Nov 2022 10:02:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 304F61804F8 for ; Wed, 30 Nov 2022 02:02:24 -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=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 02:02:23 -0800 (PST) Received: by mail-ej1-f50.google.com with SMTP id n20so40126932ejh.0 for ; Wed, 30 Nov 2022 02:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CeqdcLkt0qlXm6MtTqelM/lv6K+C7QG/Q69llHX27ik=; b=k+C+XI7B5yCgfcUnBj4G3ZKzxw2fc2LL43SFqDUcqXBy/ajpmiBOU5VlRIcFgH7Lew MSFbTqkczZS4x9VY4nfL4KwY564Gl9jLvhDNbjQyoMMEYM/TmKnmc7Ghm6aXEVa6PB9A dQbsKNVkvKxd3hqdJVbq/P2C/LWqrUVTV4NOI+Ic5Ku0u3PkzbYPIBzblb0x7aModWJ4 xztSifZsOHbFNLtzzUwz5qsWypIRJdaw4ErNiZ1kW9azR6rn9XMTq5ITrPrZOpEqjenq JTmxFenzF7rqPX1VyoPitodLH5/9fsivffZzdAkAGPXzDZuasdzScJH/Y3IPb5s9SYUr gD2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CeqdcLkt0qlXm6MtTqelM/lv6K+C7QG/Q69llHX27ik=; b=wXJmD2x713v+qxy4g1Tz5OGYkd50OgZnkIav36ZY2k9mOYDT34U6nn9vJbVgY/Ur4Q 3twD+HHhPOW5AzMbat3y+cNwwUBY6DKtiF1T3LTv8BADxEOrwGehOQ4wCCf8ai+Iiavl AU36HOH+vXBuuu5U9chOWb1EZLfocU/juuOW0Jvoa4AmDZczf01s1IsOcM3YHZqN5pPa SRymgS7OuNQWoneLkgMyinYMNV2/jlsJ2Au479tHmdoz+Iuc7ItND9k3qZF1AaX1lSa0 Fm8K9Oox1QiVNmLD/SK12JFJb4bsOqEDljHBAIlDwumvF1Vlb+uPCa6kruQZp9DulrPC n9Aw== X-Gm-Message-State: ANoB5pkYX/a6S1kmDoWsyFSllNur8g1tiT8IP+0hfTvmRarjoegBma4j bu7txNvDg2tqpaapieOYxZHyFUTh1pU= X-Google-Smtp-Source: AA0mqf6zNlEf5Ne+bhPzByufQxB2JFyqxbeIDvZy1Zn3SD7z+usGZBYXBn5qnyoqwXhgPj2vrz/QNg== X-Received: by 2002:a17:906:7848:b0:7ad:b286:72da with SMTP id p8-20020a170906784800b007adb28672damr52125599ejm.152.1669802541993; Wed, 30 Nov 2022 02:02:21 -0800 (PST) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id s22-20020a170906355600b0078db5bddd9csm467665eja.22.2022.11.30.02.02.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Nov 2022 02:02:21 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) In-Reply-To: Date: Wed, 30 Nov 2022 11:02:20 +0100 Cc: php internals Content-Transfer-Encoding: quoted-printable Message-ID: <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> To: Larry Garfield X-Mailer: Apple Mail (2.3696.120.41.1.1) Subject: Re: [PHP-DEV] [RFC] Asymmetric Visibility, with readonly From: claude.pache@gmail.com (Claude Pache) > 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, = MUST be strictly lesser than the main visibility. That is, the set = visibility may only be protected or private. If the main visibility is = protected, 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 = `protected=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. = That=20 >> should be clarified. >=20 > Er. That's exactly what it says: "strictly lesser" than the main = visibility. The lines after are just restating it. "public = public(set)" is 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) = visibility**, {$some_restriction}.=E2=80=9D In `public public(set)`, the set visibility does not differ from the = 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_restriction}.=E2=80=9D =E2=80=94Claude=