Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108714 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9143 invoked from network); 21 Feb 2020 15:25:02 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Feb 2020 15:25:02 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 66C0B1804D6 for ; Fri, 21 Feb 2020 05:41:28 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS 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-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (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 ; Fri, 21 Feb 2020 05:41:28 -0800 (PST) Received: by mail-vk1-f179.google.com with SMTP id i4so568045vkc.3 for ; Fri, 21 Feb 2020 05:41:28 -0800 (PST) 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=Z4YSWS3q2F9BtP9jQtApGApPweKMYWvSuCXy7AFLZsI=; b=IeRPdrrB5De3PJDmRKGxYIOKxm9y/sWGnQTHFAef7R52A5Ti9MiTPdBrDMoythLVCA OHRw3QJz7jEY/KTwgg6J+/jelYYhNaELN2gI2xbwIiX+skc8GNeSxV0ZVkwoHaVG+bmd 46N07KgBHamWcYt1+WjB2i7R/aTpXy/IISoJlEPTzpO2yMhVxA0XJdRMxylMmqmY9UDT czhfYnfdqphooF9QhZ/R0Hwr6yZxFd75doir+tJZ2zFjfZqkXWqxwRG50Hw/vcWCbGwi jRKr7U4KyDDmtAjYKDhdToYH2W676QiCm2a8LEbmCE+sqmvQR1CZbpdDqXfs3kerh5Rk URlA== 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=Z4YSWS3q2F9BtP9jQtApGApPweKMYWvSuCXy7AFLZsI=; b=SLsNdZ0W/WHbUjpei7MzUkbQIHg1rRpNXLx/YeVuLWjDEwr9rIdBOBPGXRtB3ruMVA Ds8UjyWH0INg4S0I0p25if534tNMclD+QyVYkqbjHo1nNhA6l6Ai9phvzvCKBKDZEGh+ iy5Qd0LNBVJ8zGObObAzKUKzUBr7yPawMVZg8Jbb4F4onxYx9hTFq0p+TXJEZhn8K3j7 ZTexq6ypku3IATpLdwoY8gpUYuesIEGfMSfptdyfMJHrLdFLkd7snUsVLqE9a/G9ZtEC i32l0SgP22XIjEcGQys1AwADzlIj1eMIP46ShfWdWFWCCD2f/CwK2kMyDLnkPhyNxFAs mocA== X-Gm-Message-State: APjAAAU5+2cn4U2TeoGlTH6she52NecBPOY49MOfFNnuyL57ydoEhY8D TQ68tu4RxO9tiAnjBimC3X3m3jcCKuIMAK76AVxDQA== X-Google-Smtp-Source: APXvYqyHP5LVdFPxo9pULtg74NKYWpOZlPgMqqeTaeru+xKGKz1JwwA6kFoh9HLxcPIsNa99Q16SxiCz3VHKlKO1mnU= X-Received: by 2002:a1f:738c:: with SMTP id o134mr8091287vkc.9.1582292484412; Fri, 21 Feb 2020 05:41:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 21 Feb 2020 14:41:13 +0100 Message-ID: To: Nikita Popov Cc: Matthew Brown , PHP Internals List Content-Type: multipart/alternative; boundary="00000000000076d764059f162d45" Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Immutable/final/readonly properties From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --00000000000076d764059f162d45 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Of course, that does leave the question of how often you need one or the > other. Maybe just the asymmetric visibility is sufficient for most > practical purposes, in which case it may not be worthwhile to introduce > readonly properties as a separate feature. > The examples shown in my previous email are indeed not very practical, but still, I would say that the added protection against possible misuse or accidental modifications (coming from either inside or outside) would be useful. Maybe it would make more sense to forbid readonly properties with default > values? > As I mentioned in my response to Larry, my point of view is that default values should be allowed. If there is a big opposition against this, I'm open for a change though. > Regarding the keyword choice, I think you can drop "sealed" from the list= , > as it is an established term that affects inheritance, not mutability. Of > the choices you present, "immutable", "readonly" and "writeonce" seem lik= e > the most viable candidates. > Thank you for the suggestions! Sure, we can drop "sealed", and I'm ok to add "immutable" and "readonly" to the list of voting choices. I'll also extend the evaluations with your thoughts. Regard, M=C3=A1t=C3=A9 --00000000000076d764059f162d45--