Re: [RFC] Accessors : read-only / write-only keywords
| From: | Stas Malyshev | Date: | Sat, 20 Oct 2012 10:40:36 +0000 |
| Subject: | Re: [RFC] Accessors : read-only / write-only keywords | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63563@lists.php.net to get a copy of this message | ||
Hi!
> Class A created property accessor $z that you can not set. Class B can
> extend me just fine, but they can not alter that basic rule that I laid
> out for my and all my children's property accessor $z: You can not set it.
I'm fine with the idea of methods that are not overrideable, even though
I think the real use case for it is not that big. I'm less fine with the
idea of methods that are not definable. Whole "final NULL" business
seems weird to me.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227