Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118369 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1600 invoked from network); 7 Aug 2022 16:59:05 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Aug 2022 16:59:05 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A271E1804AF for ; Sun, 7 Aug 2022 12:00:11 -0700 (PDT) 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 ; Sun, 7 Aug 2022 12:00:08 -0700 (PDT) Received: by mail-ed1-f52.google.com with SMTP id f22so8993599edc.7 for ; Sun, 07 Aug 2022 12:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=J03yni/fVSlugbm9y13DiLcfinAEGVCeIgljX7dO/LA=; b=dqkG2LkKbGI4LSsfwzECXOJHU9+oekBfB4h9D7mRUydDACMj8lQ+zhMyTh9F/lpe6j ZdEmS3yjpz6oRxwcBWXPRPojkpCwEdKLtz5qNrJWD+jKshS7iTCHZcfM0ZDcwPBwLuS/ 8QoHiCXtDmZQqRNZOaxiIgRB/5NLptqq7BZCMugUameMz3IazXvgW/tG7QAfCDDeVz57 bwzh74/3IC98GYaW+wPXFGFVWuNGAOtQFx2pSH14CSi/GcprFd5/R7jWjexWUzUSbYbX 23k7brG0QXZHNMnjdXcwVcl6jZb2XoEMWLEOr9i/W+DcNqjvCzOxiIcwDbXa0hBFxrza 72Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=J03yni/fVSlugbm9y13DiLcfinAEGVCeIgljX7dO/LA=; b=j3CT0cMW5AGNdDxDN3AANpAyaK0xocUA3a9x4Nc+DXsvj1HzOvZ1MoiI07H+JSJXi6 5h7IW0kbjayiq7kCS/wv+p+CAQsrabrZ9QYJeWKRl313TieIDqQH01ixmoZoLQiN9oVb DyqgicaNbCEs/DdOUQ3jxpBETctA3uz+YfwGKQS+9PFARCfKF/4WEICMIvLRQlqBlvjt 1fZz8XTHj8gNPBxDbYcQfwSwAOeNnJpHs5rdMwnk+chb6GH6qR00XRk8/TishSbVO6Nx 3HAYc6MEAaektO23n3MqKf5SUfMUsdEyrwO3yoHKpZ7tPS//bboitIXDrqeqJF69UxVb EQbA== X-Gm-Message-State: ACgBeo0mvVEDOOp0d4uL3VLxfT4xi1/IZBQk9xccTebctl3DWq1CS2mG Kt6aCqqgu9fs5Ho2P+m0+vI58/RA8causb7eK2mpLcZ3K84EJw== X-Google-Smtp-Source: AA6agR6N46zXhgR2YBVAkoc5qfSvlx1XBv82Z6TsAtxFzFkaQ0DU1AyMj38E9pVQGRaIP3+UG9v9Y5y4ids50pEj/hY= X-Received: by 2002:aa7:db49:0:b0:43c:d1af:5c76 with SMTP id n9-20020aa7db49000000b0043cd1af5c76mr15564985edt.173.1659898806998; Sun, 07 Aug 2022 12:00:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 7 Aug 2022 21:59:50 +0300 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="000000000000c11a3b05e5ab4ed5" Subject: Re: [PHP-DEV] [RFC] Asymmetric visibility From: drealecs@gmail.com (=?UTF-8?Q?Alexandru_P=C4=83tr=C4=83nescu?=) --000000000000c11a3b05e5ab4ed5 Content-Type: text/plain; charset="UTF-8" On Fri, Aug 5, 2022 at 8:09 PM Larry Garfield wrote: > Ilija Tovilo and I are happy to present the first new RFC for PHP 8.3: > Asymmetric Visibility. > > https://wiki.php.net/rfc/asymmetric-visibility > > Details are in the RFC, but it's largely a copy of Swift's support for the > same. > > -- > Larry Garfield > larry@garfieldtech.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > Hi Larry, Ilija, Review the proposal and it looks great. I have a few subjects to point and maybe discuss further if you think so: 1. The first subject is visible even from the first phrase of the RFC that uses both the terms "get and set operations" and "read and write operations". I'm wondering if you thought about using protected(write) or private(write). 2. The term "asymmetric visibility" is not that accurate and I believe "asymmetric access" or "asymmetric accessibility" would fit better. As noted in the relation with __set(), a public private(set) property that is attempted to be written from global context will not act like it's not visible but that it's not accessible for writing. 3. I assume the target is both static and non-static properties. This should be mentioned in the RFC. Regards, Alex --000000000000c11a3b05e5ab4ed5--