3 ms·
I wasn't necessarily advocating they add _additional_ visibility levels, but they already have at least 2. They are just implicit by capitalization as opposed t
by andyfleming 9y ago
I wasn't necessarily advocating they add _additional_ visibility levels, but they already have at least 2. They are just implicit by capitalization as opposed to explicit with "public" and "private" keywords.
- zaphar 9y agoBoth are explicit. One uses a keyword the other uses capitalization. The compiler will still complain if you use a private method in either one. You can argue about whether one is more or less readable than the other but you can't say they aren't explicit.
- andyfleming 9y agoYeah, I guess you are technically correct as far as being explicit. Maybe intuitive is a better description. A newcomer could read public/private and quickly understand its meaning as opposed to capitalization being a learned convention.