Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112630 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93523 invoked from network); 29 Dec 2020 08:51:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Dec 2020 08:51:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 84DA21804A7 for ; Tue, 29 Dec 2020 00:26:05 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from wp160.webpack.hosteurope.de (wp160.webpack.hosteurope.de [80.237.132.167]) (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 ; Tue, 29 Dec 2020 00:26:04 -0800 (PST) Received: from [2a02:8109:9d40:1d44:40b6:f5d3:c567:d46c] (helo=nas.fritz.box); authenticated by wp160.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1kuAKQ-0006g4-4u; Tue, 29 Dec 2020 09:26:02 +0100 To: internals@lists.php.net References: <1d0abb04-4987-43a9-85bc-bccc3bd6be9a@www.fastmail.com> Message-ID: <03108284-740a-4a5d-130f-15b2e67e9df9@mabe.berlin> Date: Tue, 29 Dec 2020 09:26:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <1d0abb04-4987-43a9-85bc-bccc3bd6be9a@www.fastmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-bounce-key: webpack.hosteurope.de;marc@mabe.berlin;1609230365;833047ae; X-HE-SMSGID: 1kuAKQ-0006g4-4u Subject: Re: [PHP-DEV] Analysis of property visibility, immutability, and cloning proposals From: marc@mabe.berlin (Marc) On 28.12.20 21:23, Larry Garfield wrote: > There's been a number of discussions of late around property visibility and how to make objects more immutable. Since it seems to have been well-received in the past, I decided to do a complete analysis and context of the various things that have been floated about recently. > > The full writeup is here: > > https://peakd.com/hive-168588/@crell/object-properties-and-immutability > > I hope it proves stimulating, at least of discussion and not naps. > Thanks for the nice write up Larry! Is there a reason you didn't mention the proposal for immutable classes? (probably because it never went into a final RFC) https://externals.io/message/94913#94913 https://externals.io/message/79180#79180