Re: RFC: C-sharp style property get/set syntax for PHP
| From: | Stas Malyshev | Date: | Mon, 29 Nov 2010 15:08:23 +0000 |
| Subject: | Re: RFC: C-sharp style property get/set syntax for PHP | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50696@lists.php.net to get a copy of this message | ||
Hi!
I actually like that, though I think we should support the whole existing semantics, i.e. get/set/isset/unset. And probably keep the names, so we don't call the same thing both "read" and "get". Having them called __get etc. would even remove the need for another keyword, probably, but this looks ugly :( -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227public property Hours read getHours write setHours;