Re: [RFC][DISCUSSION] Immutability

From: Date: Fri, 23 Feb 2018 14:42:07 +0000
Subject: Re: [RFC][DISCUSSION] Immutability
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-101910@lists.php.net to get a copy of this message
Hey, > If you do allow arrays, they would have to follow the same rules as the immutable object. > > Alternatively, perhaps an ImmutableArrayObject would be a good addition or followup to the RFC. That would just move the problem and doesn't have any benefit over directly allowing arrays, right? > Some further points to harden the implementation: > > - I see that resources and references are disallowed (which is good). If you have not already > done so, you may wish to disallow streams as well. Streams are resources, am I missing something? Regards, Niklas

« previous php.internals (#101910) next »