Re: [RFC] Propety Accessors v1.1
| From: | Leigh | Date: | Thu, 11 Oct 2012 12:49:34 +0000 |
| Subject: | Re: [RFC] Propety Accessors v1.1 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63350@lists.php.net to get a copy of this message | ||
On 11 October 2012 12:46, Cal <cal@icical.net> wrote:
> For me the best solution would be a new keyword, equivalent to a "var"
> without write access from outside the class:
New keywords should not (will not) be introduced trivially, they can
cause massive headaches with backwards compatibility breaks, and
should be a last resort only when absolutely necessary.
Re-using existing keywords is the most logical solution. (i.e.
suggestions such as "public get" and "protected/private set")