Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114809 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 62948 invoked from network); 10 Jun 2021 09:18:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Jun 2021 09:18:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6B16B18053A for ; Thu, 10 Jun 2021 02:33:33 -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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 10 Jun 2021 02:33:32 -0700 (PDT) Received: by mail-ot1-f51.google.com with SMTP id 36-20020a9d0ba70000b02902e0a0a8fe36so26901289oth.8 for ; Thu, 10 Jun 2021 02:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W4AphUR2ZFzhEr30sjQGM7t+A5kOfx792zV/7ipoLjs=; b=vJRWziMlL695Fk3TGaC6wXP5bpEpCYypepulUdWhCrSfcYTUwfc7J09trHbYjXISLG cQJRXz27RjsDm4IqPk1353edMKf717MnBvG/GzQk14cSdW+BT6Uoys0Jn6GH1ULn6OZB hVCJouoE91cSiyQKXA2vrrSzcQzNCmUMXK+6LaIwNAoQBIB5Jo0MfKHnxJONIpKLPHjH U0bDg/W6qUSIMxbpqh7hnGO7onnFaYLGcj6AOCsJ28+5o1RZeoOw5IZdDlPeAuykNffW Nn969OTMqxryOklCUmdMNQ2WmLt6MqeJ3sPFrTBrUmUI65L57an/JK7YLubQAuHvZQkL L+ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W4AphUR2ZFzhEr30sjQGM7t+A5kOfx792zV/7ipoLjs=; b=bly7gQFIE+2jLZluggv5HFc7+VQN3NqCQOABYNmHG1J0v6Q1o7qO7rVIsGt2trNz0p KI4w2onBryPAB/Q2bciVaEAjrVO9+wBkF6JBe9jqphMdGRWzCG247XWT7iGREHnstQI4 COJka7SOBpEqgDLsxOZXcr12ADUZVOxJgPybkQUodHRuNclcpt9rRZ/l2ftVInNilQkr GOpyvBwpaSEvWqQ3PIJd0gjEw9qjwgLn0rQWCz3Qq57Fef938H0Vt8nEhxNe+4k4mhvU T59bzAEV+OXN5y/hpqCQD0ibXFFHBgoC5tKSON1GZ7oIkgdBNIGpoHLnjbVzxd2t8M4n ot3A== X-Gm-Message-State: AOAM533TavnXwnBQo//6zb6v3PFFWdEcsqnFZ1gyItLCrp4ddog68yIJ E/ZybkBWbvABSACLxcyslxzEBAopM5HDuHaOd+0= X-Google-Smtp-Source: ABdhPJxtMliXb3LivqXRe3pGPuT8BX0PAWEMwtWHAdqJwS2n2PoDohfyC6gRnHBEAlloGsV/vxJvuWVUdrayklBfuF0= X-Received: by 2002:a05:6830:1bf7:: with SMTP id k23mr1702580otb.206.1623317611252; Thu, 10 Jun 2021 02:33:31 -0700 (PDT) MIME-Version: 1.0 References: <7a40dd68-6e44-4b2a-83e2-956fe00c9e6e@www.fastmail.com> In-Reply-To: Date: Thu, 10 Jun 2021 16:33:19 +0700 Message-ID: To: Nikita Popov Cc: Larry Garfield , php internals Content-Type: multipart/alternative; boundary="0000000000009390cd05c46615a9" Subject: Re: [PHP-DEV] [RFC] Readonly properties From: pierre.php@gmail.com (Pierre Joye) --0000000000009390cd05c46615a9 Content-Type: text/plain; charset="UTF-8" On Thu, Jun 10, 2021, 2:32 PM Nikita Popov wrote: I'm not sure where you got the strange idea that "readonly" can refer to > asymmetric visibility. The two syntactic approaches to asymmetric > visibility that I'm aware of are "{ get; private set; }" in C# and "public > private(set)" in Swift. Neither use the "readonly" terminology for this > purpose. Using "readonly" to describe asymmetric visibility is semantically > incorrect, as such properties are not, in fact, read-only. > I listed my refs in the initial reply :) And some like .net updates their syntax for init only write. I suppose I see it more as "from the outside of the class" and my personal usages are like that too. In any case, good rfc, naming perception is a details, important but a details for first time users. > Regards, > Nikita > --0000000000009390cd05c46615a9--