Re: Access and Visibility Modifiers
| From: | Rowan Collins | Date: | Thu, 07 Apr 2016 18:05:54 +0000 |
| Subject: | Re: Access and Visibility Modifiers | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92139@lists.php.net to get a copy of this message | ||
Fleshgrinder wrote on 07/04/2016 18:35:
I would like to change above definition for properties since the*var* deprecation was voted negative: # Properties private := limited to the current class protected := limited to the current and child classesI'm not convinced of the value of reusing the keyword in this way. To me, there is nothing in the term "var" that means "slightly less than public", and if we want to have package/assembly/whatever visibility, we should reserve a new keyword for that use. Meanwhile, it might be worth checking the list archives for previous discussions of package visibility; I know it has come up a couple of times recently, in various forms, so it would be good not to repeat the same points again and again. Regards, -- Rowan Collins [IMSoP]var := limited to the current assembly public := global