Re: [RFC] Readonly properties
| From: | Nicolas Grekas | Date: | Sat, 05 Jun 2021 08:39:37 +0000 |
| Subject: | Re: [RFC] Readonly properties | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-114733@lists.php.net to get a copy of this message | ||
Hi Nikita,
Le ven. 4 juin 2021 à 17:19, Nikita Popov <nikita.ppv@gmail.com> a écrit :
> Hi internals,
>
> I'd like to open the discussion on readonly properties:
> https://wiki.php.net/rfc/readonly_properties_v2
>
Thanks for the proposal, that's quite appealing!
I voted "no" on the previous proposal because it didn't play well with
cloning. That's why I favoured asymmetric visibility.
I see that this new iteration has the same issue, so I'd like to know:
What about putting readonly properties in the uninitialized state when
cloning objects?
Cheers,
Nicolas