Re: Re: [PEPr] Comment on RFC::ProtectedMembers
| From: | Hans_L | Date: | Mon, 28 Jun 2004 12:58:31 +0000 |
| Subject: | Re: Re: [PEPr] Comment on RFC::ProtectedMembers | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31283@lists.php.net to get a copy of this message | ||
Aidan Lister wrote:
Private var prefixing should definitely be left up to the author. It affects absolutely no one else. Hansfor b) - I guess it's up to the programmer to decide. - If you decide to make something protected, you are enforcing a usage requirement. In the authors view should it be allowable for an extended class to decrease the protection? - Yes: = use public syntax, No: = use private syntax.But then you have some code with prefixes and some without and the developer/user have no idea what they mean. If you want to make prefixing up to the author, then make prefixing private vars optional as well.