3 ms·
The default "internal" access mode is similar to "protected". It's less granular, but that's to be expected since Swift does not (yet?) allow partitioning of a
by bluerobotcat 12y ago
The default "internal" access mode is similar to "protected". It's less granular, but that's to be expected since Swift does not (yet?) allow partitioning of a single app or library into different namespaces.
- jackjeff 12y ago"internal" offers access to all in the module, not just subclasses. "protected" would allow you to modify a member of a class when you inherit from it, whether it is in the same module or not. using "internal" or "public" with a comment saying "please only use this when you subclass" the class is not as neat and tidy.
- mimighost 12y agointernel looks more like the default package scope in Java
- bluerobotcat 12y agoAh, shoot, you're right. That's what I was thinking about. It's been a long while since I actively used Java.