On Sun, Jul 15, 2012 at 5:46 PM, Amaury Bouchard <ama...@amaury.net> wrote: > Hi, > > Here is an RFC proposal about a syntax extension for PHP. The purpose is to > manage precisely the visbiliy of attributes, by separating reading and > writing access. > > First of all, I know there is already an RFC about attributes ("Property > get/set syntax" [1]). Its goal is mainly different, but I'll discuss it > lower.
I'm not sure I really understand what this adds over the existing getter/setter proposal. read-only and write-only should cover the most common cases. If you do need visibility control, it is possible too: public $property { get { ... } protected set { ... } } So what does this proposal add to it? Nikita -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php