3 ms·
Visibility as a concept is one I also disagree with :) I lump it together with the "OOP" classification in my original comment. I agree with you in this regard.
by trashburger 3y ago
Visibility as a concept is one I also disagree with :) I lump it together with the "OOP" classification in my original comment. I agree with you in this regard. The messages an object is able to respond to should not be restricted because of where it comes from.
- magicalhippo 3y agoI feel visibility should be there, but it should also be possible to bypass. Essentially visibility is a contract, and sometimes you want or need to go beyond. The language should allow this IMO but make it clear that you are bypassing the contract of the original author. Making things unreachable is just a PITA for no good reason.