Dear all,

Here is a new RFC for you to consider:
>> https://wiki.php.net/rfc/promoted_readonly_constructor_reassign
>>
>> As a quick intro, my motivation for that RFC is that I find it quite
>> annoying that readonly properties play badly with CPP (constructor property
>> promotion).
>>
>> Doing simple processing of any argument before assigning it to a readonly
>> property forces opting out of CPP.
>>
>> This RFC would allow setting once a readonly property in the body of a
>> constructor after the property was previously (and implicitly) set using
>> CPP.
>>
>> This allows keeping property declarations in their compact form while
>> still enabling validation, normalization, or conditional initialization.
>>
>
>
> Friendly reminder about this RFC. It's been quiet for 13 days so I plan to
> start the vote on Thursday if there are no more concerns to the text of the
> proposal.
>

I made some changes last week based on Ilia's review. Nothing substantial,
just clarifications, and removal of the implementation notes, which don't
belong to the RFC text.
Here is the diff FYI:
https://wiki.php.net/rfc/promoted_readonly_constructor_reassign?do=diff&rev2%5B0%5D=1771972248&rev2%5B1%5D=1773345559&difftype=sidebyside

This postpones the vote by 7 days, I'll open it next week, unless the
discussion continues of course!

Cheers,
Nicolas

Reply via email to