In many languages there is a scope that is just less than
Wondering, Why none of the language, implemented a feature on
internal such that one can specify
- Only what other classes are permitted to access or
- Accessible to all classes in the module
There are many examples where a group of class works together as a concept, while only one or few classes are really needs to be accessed by other concepts in the system. Which means, if I could make some low level classes only available to the group of classes handling the concept, then that way I could prevent it from widely available to the entire module. Which also means those classes becomes encapsulated behind my higher level classes, in turn less coupling points in the design.
Is this feature available in any language?