Re: [RFC] Readonly Properties
| From: | Dmitry Stogov | Date: | Mon, 27 Oct 2014 18:31:45 +0000 |
| Subject: | Re: [RFC] Readonly Properties | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78400@lists.php.net to get a copy of this message | ||
Hi Andrea,
I don't have strong opinion about this proposal.
It doesn't make any harm to the engine, and it really may speed-up code
especially written for read-only properties.
On the other hand you introduce new orthogonal to private/protected/public
visibility rule,
and I'm not sure if this complication is good for language.
Why did you disable read-only static methods? (I just didn't get it).
Thanks. Dmitry.
On Fri, Oct 24, 2014 at 3:36 AM, Andrea Faulds <ajf@ajf.me> wrote:
> Good evening once again,
>
> Here’s another RFC: R
> a?¼¶—àþEaPòEhttps://wiki.php.net/rfc/readonly_properties
>
> It proposes, with a working implementation, a modifier for properties that
> makes them readable and writeable from different scopes.
>
> Since I am a big proponent of including specification patches in new RFCs,
> I have decided to put my money (or rather, time) where my mouth is and I
> have actually written a specification patch before writing an RFC. I would
> love to see this become the new standard for RFCs affecting the language.
>
> If you are curious at all about the behaviour, I suggest perusing the
> fairly comprehensive set of twelve tests included in the main patch to
> php-src.
>
> Thanks!
> --
> Andrea Faulds
> http://ajf.me/
>
>
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>