[PHP-DEV] [RFC] Readonly Property Defaults

Nick Sdot <[email protected]>
Newsgroups gmane.comp.php.devel
Message-ID <[email protected]>
Hey Internals,

I would like to present a tiny, five-line-removal RFC allowing default 
values on readonly properties.

Allowing default values on readonly class properties enables creating a 
strict contract for implementation property values that will not change 
at runtime -- as in, constant-like behaviour with contract. I would love 
doing that.

Please find the RFC text here: 
https://wiki.php.net/rfc/readonly_property_defaults

--

Cheers
Nick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.