Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97402 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94790 invoked from network); 14 Dec 2016 16:43:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2016 16:43:56 -0000 X-Host-Fingerprint: 94.0.142.252 unknown Received: from [94.0.142.252] ([94.0.142.252:24731] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/BD-21185-BC671585 for ; Wed, 14 Dec 2016 11:43:56 -0500 Message-ID: <80.BD.21185.BC671585@pb1.pair.com> To: internals@lists.php.net References: <19.8F.27518.25CFE485@pb1.pair.com> <25846969-F608-4EE2-8636-8823213C990B@gmail.com> Date: Wed, 14 Dec 2016 16:43:52 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 MIME-Version: 1.0 In-Reply-To: <25846969-F608-4EE2-8636-8823213C990B@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 94.0.142.252 Subject: Re: [PHP-DEV][RFC][DISCUSSION] - Immutable classes and properties From: ajf@ajf.me (Andrea Faulds) Hi, Paul Jones wrote: > >> On Dec 12, 2016, at 13:36, Andrea Faulds wrote: >> >> Consider that some popular applications of immutability ultimately contain a reference to something mutable: PSR-7's immutable HTTP message objects point to mutable streams > > Which subverts its overall promise of immutability (and the streams are not the only place where the promise of immutability is subverted). Indeed. It's not necessarily a good feature, don't get me wrong. -- Andrea Faulds https://ajf.me/