On May 17, 2006, at 2:25 PM, Stanislav Malyshev wrote:
This would be, however, yet another level of complexity added to the language...
OOP is already a level of complexity. If you're going to have OOP in the language, it needs to support at least the standard needs that developers have when using OOP. PHP has properties, good. PHP has virtual properties via __get and __set...good. Now, if PHP is not going to have some kind of accessor method standard, I can live with that -- however, being able to control read/write settings for properties seems highly standard. Saying it is too confusing for newbies is basically saying OOP is too confusing for newbies. If a newbie learns what a property is, then at the same time they can discover that you can set read/write access for properties. You can set read/write access for files, right? So you can for properties. Makes sense to me.
That being said, I think the current syntax options being discussed are somewhat cumbersome. "readable" doesn't really sit well with me. I wish I were clever enough to come up with an alternative, but I ain't. :)
Take care, Jared -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php