Re: [RFC][DISCUSSION] - Immutable classes and properties
| From: | Andrea Faulds | Date: | Wed, 14 Dec 2016 16:43:52 +0000 |
| Subject: | Re: [RFC][DISCUSSION] - Immutable classes and properties | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-97402@lists.php.net to get a copy of this message | ||
Hi,
Paul Jones wrote:
Indeed. It's not necessarily a good feature, don't get me wrong. -- Andrea Faulds https://ajf.me/On Dec 12, 2016, at 13:36, Andrea Faulds <ajf@ajf.me> 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 streamsWhich subverts its overall promise of immutability (and the streams are not the only place where the promise of immutability is subverted).