Re: RFC: C-sharp style property get/set syntax for PHP
| From: | Stas Malyshev | Date: | Wed, 01 Dec 2010 10:38:58 +0000 |
| Subject: | Re: RFC: C-sharp style property get/set syntax for PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50766@lists.php.net to get a copy of this message | ||
Hi!
If we think of properties as this new entity for the language (rather than somehow massaging existing entities to fit a new usage scenario), thenI think the idea of new entity of the language looking exactly like old entity of the language but having different rules is kind of non-starter.
One idea I had was to keep just the get/set property methods and add to them an additional parameter ...So we have one set of properties where get and isset use different methods and another set of properties where get and isset use same method but with parameter. I think it's not the best way to go. It's better to ignore isset altogether than this. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227