Re: C# properties vs. accessors RFC
| From: | Clint Priest | Date: | Wed, 23 Jan 2013 21:13:25 +0000 |
| Subject: | Re: C# properties vs. accessors RFC | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65126@lists.php.net to get a copy of this message | ||
On 1/23/2013 3:07 PM, Crypto Compress wrote:
I'd just like to point out the fact that RFC v1.1 from a year ago was exactly as above but people wanted all of these other features. They were not a property, they had no "guarding", no unset, isset, etc. The original RFC that was exactly as c# had it, nobody liked it. It was changed to its current incarnation because it now mimics exactly what everyone is use to with __get(), etc. i think you refer to RFC 0.3 (could not find C# in 1.1): https://wiki.php.net/rfc/propertygetsetsyntax#properties_in_c Well actually you're right. .3 was written by Dennis long ago and I wrote accessors to be exactly as that document described except where there was ambiguity. The 1.1 document had already deviated from his original RFC by way of discussion but I had not been tracking them as separate documents.If you go back in history on https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented you will see a point where it matches the original spec more or less completely.
cryptocompress-- -Clint